Added Gamestate class

This commit is contained in:
grayson committed 2021-08-16 14:24:36 -05:00
1 parent efeec66fad
commit 94c503f098
6 files changed
+33 -4

No files matched your search

+2
View File
@@ -192,11 +192,13 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="src\Application.cpp" />
<ClCompile Include="src\Gamestates\Gamestate.cpp" />
<ClCompile Include="src\Utility.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\include\Application.h" />
<ClInclude Include="src\include\Config.h" />
<ClInclude Include="src\include\Gamestate.h" />
<ClInclude Include="src\include\NothinFancy.h" />
<ClInclude Include="src\include\Utility.h" />
</ItemGroup>
+6
View File
@@ -21,6 +21,9 @@
<ClCompile Include="src\Utility.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\Gamestates\Gamestate.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\include\Config.h">
@@ -35,5 +38,8 @@
<ClInclude Include="src\include\Application.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\include\Gamestate.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
-4
View File
@@ -5,10 +5,6 @@
#include "GL\wglew.h"
#endif
extern "C" {
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
namespace nf {
DEBUGINIT;
+7
View File
@@ -0,0 +1,7 @@
#include "Gamestate.h"
namespace nf {
Gamestate::Gamestate() {
}
}
+5
View File
@@ -47,4 +47,9 @@ namespace nf {
MultiByteToWideChar(CP_ACP, NULL, in, -1, out, length);
return out;
}
}
//Nvidia Optimius support
extern "C" {
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
+13
View File
@@ -0,0 +1,13 @@
#pragma once
namespace nf {
class Gamestate {
public:
Gamestate();
virtual void onEnter();
virtual void onExit();
private:
//Resource stuff
};
}