Skip to content

Commit c101668

Browse files
committed
ECore: future proofing WIP
1 parent f810e12 commit c101668

File tree

19 files changed

+69
-58
lines changed

19 files changed

+69
-58
lines changed

src/Common/CommonImportExport.inl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
#define XRCORE_API XR_IMPORT
3030
#endif
3131

32+
#ifdef XRECORE_EXPORTS
33+
#define XRECORE_API XR_EXPORT
34+
#else
35+
#define XRECORE_API XR_IMPORT
36+
#endif
37+
3238
#ifdef XRGAMESPY_EXPORTS
3339
#define XRGAMESPY_API XR_EXPORT
3440
#else

src/Common/NvMender2003/NVMeshMender.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class MeshMender
108108
FVF = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX3 | D3DFVF_TEXCOORDSIZE2(0) | D3DFVF_TEXCOORDSIZE3(1) |
109109
D3DFVF_TEXCOORDSIZE3(2)
110110
};
111-
Vertex::Vertex() :
111+
Vertex() :
112112
pos(0.0f, 0.0f, 0.0f), normal(0.0f, 0.0f, 0.0f), s(0.0f), t(0.0f),
113113
tangent(0.0f, 0.0f, 0.0f), binormal(0.0f, 0.0f, 0.0f)
114114
{}

src/Common/NvMender2003/mender_input_output.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static void fill_mender_input(const xr_vector<type_vertex>& vertices, const xr_v
3131
for (u32 i = 0; i < vertices_number; ++i)
3232
set_vertex(theVerts[i], vertices[i]);
3333
// fill inputs (indices)
34-
for (xr_vector<type_face>::const_iterator face_it = faces.begin(); face_it!=faces.end(); face_it++)
34+
for (auto face_it = faces.cbegin(); face_it!=faces.cend(); ++face_it)
3535
add_face(theIndices, *face_it);
3636
}
3737

@@ -45,7 +45,7 @@ static void retrive_data_from_mender_otput(xr_vector<type_vertex>& vertices, //
4545
old_vertices.clear();
4646
// save old vertices to retrive through mappingNewToOldVert data that missing in MeshMender::Vertex
4747
old_vertices = vertices;
48-
// retriving data
48+
// retrieving data
4949
const u32 face_count = faces.size();
5050
for (u32 i = 0; i < face_count; ++i)
5151
set_face(faces[i], theIndices[3*i + 0], theIndices[3*i + 1], theIndices[3*i + 2]);

src/editors/ECore/ECore.vcxproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<ItemDefinitionGroup>
5555
<ClCompile>
5656
<PreprocessorDefinitions>EDITOR;_EDITOR;%(PreprocessorDefinitions)</PreprocessorDefinitions>
57+
<AdditionalIncludeDirectories>$(ProjectDir)Editor;$(ProjectDir)Engine;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
5758
</ClCompile>
5859
</ItemDefinitionGroup>
5960
<ItemGroup>
@@ -75,7 +76,6 @@
7576
<ClInclude Include="Editor\ELog.h" />
7677
<ClInclude Include="Editor\engine.h" />
7778
<ClInclude Include="Editor\EStats.h" />
78-
<ClInclude Include="Editor\ETextureParams.h" />
7979
<ClInclude Include="Editor\EThumbnail.h" />
8080
<ClInclude Include="Editor\ExportObjectOGF.h" />
8181
<ClInclude Include="Editor\ExportSkeleton.h" />
@@ -115,7 +115,6 @@
115115
<ClInclude Include="stdafx.h" />
116116
</ItemGroup>
117117
<ItemGroup>
118-
<ClCompile Include="Editor\bone.cpp" />
119118
<ClCompile Include="Editor\BoneEditor.cpp" />
120119
<ClCompile Include="Editor\ColorPicker.cpp" />
121120
<ClCompile Include="Editor\c_dinput.cpp" />
@@ -144,7 +143,6 @@
144143
<ClCompile Include="Editor\ELog.cpp" />
145144
<ClCompile Include="Editor\Engine.cpp" />
146145
<ClCompile Include="Editor\EStats.cpp" />
147-
<ClCompile Include="Editor\ETextureParams.cpp" />
148146
<ClCompile Include="Editor\EThumbnail.cpp" />
149147
<ClCompile Include="Editor\EThumbnailGroup.cpp" />
150148
<ClCompile Include="Editor\EThumbnailObject.cpp" />
@@ -185,6 +183,11 @@
185183
<PrecompiledHeader>Create</PrecompiledHeader>
186184
</ClCompile>
187185
</ItemGroup>
186+
<ItemGroup>
187+
<ProjectReference Include="..\..\xrCore\xrCore.vcxproj">
188+
<Project>{a0f7d1fb-59a7-4717-a7e4-96f37e91998e}</Project>
189+
</ProjectReference>
190+
</ItemGroup>
188191
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
189192
<ImportGroup Label="ExtensionTargets">
190193
</ImportGroup>

src/editors/ECore/ECore.vcxproj.filters

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@
6464
<ClInclude Include="Editor\EStats.h">
6565
<Filter>editor</Filter>
6666
</ClInclude>
67-
<ClInclude Include="Editor\ETextureParams.h">
68-
<Filter>editor</Filter>
69-
</ClInclude>
7067
<ClInclude Include="Editor\EThumbnail.h">
7168
<Filter>editor</Filter>
7269
</ClInclude>
@@ -178,9 +175,6 @@
178175
<ClInclude Include="stdafx.h" />
179176
</ItemGroup>
180177
<ItemGroup>
181-
<ClCompile Include="Editor\bone.cpp">
182-
<Filter>editor</Filter>
183-
</ClCompile>
184178
<ClCompile Include="Editor\BoneEditor.cpp">
185179
<Filter>editor</Filter>
186180
</ClCompile>
@@ -265,9 +259,6 @@
265259
<ClCompile Include="Editor\EStats.cpp">
266260
<Filter>editor</Filter>
267261
</ClCompile>
268-
<ClCompile Include="Editor\ETextureParams.cpp">
269-
<Filter>editor</Filter>
270-
</ClCompile>
271262
<ClCompile Include="Editor\EThumbnail.cpp">
272263
<Filter>editor</Filter>
273264
</ClCompile>

src/editors/ECore/Editor/EStats.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
// refs
1010
class CGameFont;
1111

12-
class ENGINE_API CEStats :
13-
14-
public CStatsPhysics
12+
class ENGINE_API CEStats
13+
: public CStats //CStatsPhysics
1514
{
1615
public:
1716
float fFPS, fRFPS, fTPS; // FPS, RenderFPS, TPS

src/editors/ECore/Editor/ETextureParams.cpp

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/editors/ECore/Editor/ETextureParams.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/editors/ECore/Editor/EditorPreferences.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void CCustomPreferences::ApplyValues()
7272

7373
//---------------------------------------------------------------------------
7474

75-
void __stdcall CCustomPreferences::OnClose() { ApplyValues(); }
75+
void CCustomPreferences::OnClose() { ApplyValues(); }
7676
//---------------------------------------------------------------------------
7777

7878
void CheckValidate(ShortcutValue*, const xr_shortcut& new_val, bool& result)

src/editors/ECore/Editor/EditorPreferences.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ECORE_API CCustomPreferences
6868

6969
protected:
7070
void OnKeyboardCommonFileClick(ButtonValue* value, bool& bModif, bool& bSafe);
71-
void__stdcall OnClose();
71+
void OnClose();
7272
void ApplyValues();
7373

7474
virtual void Load(CInifile*);

0 commit comments

Comments
 (0)