Changeset 54b6d6b in opengl-game
- Timestamp:
- May 3, 2018, 3:17:21 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- c58ebc3
- Parents:
- 4e0b82b
- Files:
-
- 3 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
NewOpenGLGame.vcxproj
r4e0b82b r54b6d6b 125 125 </ItemDefinitionGroup> 126 126 <ItemGroup> 127 <ClCompile Include="gl3w.c" />128 127 <ClCompile Include="imgui.cpp" /> 129 128 <ClCompile Include="imgui_demo.cpp" /> … … 137 136 </ItemGroup> 138 137 <ItemGroup> 139 <ClInclude Include="gl3w.h" />140 <ClInclude Include="glcorearb.h" />141 138 <ClInclude Include="imgui_internal.h" /> 142 139 <ClInclude Include="imgui_impl_glfw_gl3.h" /> -
imgui_example.cpp
r4e0b82b r54b6d6b 2 2 // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. 3 3 // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) 4 // (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, Glad, etc.)5 4 6 5 #include "imgui.h" 7 6 #include "imgui_impl_glfw_gl3.h" 8 7 #include <stdio.h> 9 #include "gl3w.h" // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you. 8 9 #include <GL/glew.h> 10 10 #include <GLFW/glfw3.h> 11 11 … … 30 30 glfwMakeContextCurrent(window); 31 31 glfwSwapInterval(1); // Enable vsync 32 gl3wInit(); 32 33 glewExperimental = GL_TRUE; 34 glewInit(); 33 35 34 36 // Setup Dear ImGui binding -
imgui_impl_glfw_gl3.cpp
r4e0b82b r54b6d6b 1 1 // ImGui GLFW binding with OpenGL3 + shaders 2 2 // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) 3 // (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, Glad, etc.)4 3 5 4 // Implemented features: … … 41 40 #include "imgui_impl_glfw_gl3.h" 42 41 43 // GL 3W/GLFW44 #include "gl3w.h" // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you.42 // GLEW/GLFW 43 #include <GL/glew.h> 45 44 #include <GLFW/glfw3.h> 46 45 #ifdef _WIN32 -
imgui_impl_glfw_gl3.h
r4e0b82b r54b6d6b 1 1 // ImGui GLFW binding with OpenGL3 + shaders 2 2 // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) 3 // (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, Glad, etc.)4 3 5 4 // Implemented features:
Note:
See TracChangeset
for help on using the changeset viewer.