Minor updates
This commit is contained in:
parent
22deb5a7ad
commit
11dc2deb2f
@ -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(...);
|
||||
|
@ -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">
|
||||
|
@ -49,6 +49,6 @@
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Natvis Include="src\NatvisFile.natvis" />
|
||||
<Natvis Include="NatvisFile.natvis" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -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);
|
||||
|
Reference in New Issue
Block a user