Minor updates

This commit is contained in:
grayson committed 2021-08-20 01:47:56 -05:00
1 parent 22deb5a7ad
commit 11dc2deb2f
6 files changed
+8 -6

No files matched your search

+2 -1
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);
-15
View File
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="nf::Application">
<DisplayString>Nothin' Fancy Application ({m_currentConfig.title,sb})</DisplayString>
<Expand>
<Item Name="Config">m_currentConfig</Item>
<Item Name="Is Running">m_running</Item>
<Item Name="FPS">m_FPS</Item>
<Item Name="Game State">m_currentState</Item>
</Expand>
</Type>
<Type Name="nf::Config">
<DisplayString>Width = {width}, Height = {height}, Fullscreen = {fullscreen}</DisplayString>
</Type>
</AutoVisualizer>