Minor updates

This commit is contained in:
Grayson Riffe (Desktop) 2021-08-20 01:47:56 -05:00
parent 22deb5a7ad
commit 11dc2deb2f
6 changed files with 8 additions and 6 deletions

View File

@ -4,7 +4,7 @@
using namespace nf;
int main(int argc, char* argv[]) {
Config conf = { 1280, 720, false, "Test"};
Config conf = { 1280, 720, false, "Example Game"};
Application app(conf);
//app.setWindowIcon(...);
// app.setWindowCursor(...);

View File

@ -205,7 +205,7 @@
<ClInclude Include="src\include\Utility.h" />
</ItemGroup>
<ItemGroup>
<Natvis Include="src\NatvisFile.natvis" />
<Natvis Include="NatvisFile.natvis" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">

View File

@ -49,6 +49,6 @@
</ClInclude>
</ItemGroup>
<ItemGroup>
<Natvis Include="src\NatvisFile.natvis" />
<Natvis Include="NatvisFile.natvis" />
</ItemGroup>
</Project>

View File

@ -234,6 +234,7 @@ namespace nf {
case WM_MENUCHAR: {
return MNC_CLOSE << 16;
}
//TODO: mouse position input
case WM_LBUTTONDOWN: {
app->m_input[1] = true;
return 0;
@ -280,7 +281,6 @@ namespace nf {
}
}
return DefWindowProc(hWnd, uMsg, wParam, lParam);
//TODO: Fill out events
}
void Application::createOpenGLContext() {
@ -322,6 +322,7 @@ namespace nf {
wglMakeCurrent(m_hdc, m_hglrc);
wglSwapIntervalEXT(0);
Log("OpenGL version: " + std::string((char*)glGetString(GL_VERSION)));
//TODO: Move default vertex array to Renderer
GLuint vao;
glGenVertexArrays(1, &vao);
glBindVertexArray(vao);

View File

@ -17,10 +17,11 @@ Remember to use tasks (//TODO: )
*Namespaced
*Debug and log system
*NatVis
Config changing
*Config changing
*Alt-Enter
*File IO functions
Input (mouse position)
*Keyboard and mouse click input
Mouse position input
Audio
*Game states
Text rendering