Added Gamestate class

This commit is contained in:
Grayson Riffe (Laptop) 2021-08-16 14:24:36 -05:00
parent efeec66fad
commit 94c503f098
6 changed files with 33 additions and 4 deletions

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>

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>

View File

@ -5,10 +5,6 @@
#include "GL\wglew.h"
#endif
extern "C" {
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
namespace nf {
DEBUGINIT;

View File

@ -0,0 +1,7 @@
#include "Gamestate.h"
namespace nf {
Gamestate::Gamestate() {
}
}

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;
}

View File

@ -0,0 +1,13 @@
#pragma once
namespace nf {
class Gamestate {
public:
Gamestate();
virtual void onEnter();
virtual void onExit();
private:
//Resource stuff
};
}