Changeset 54b6d6b in opengl-game for imgui_example.cpp
- Timestamp:
- May 3, 2018, 3:17:21 AM (7 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- c58ebc3
- Parents:
- 4e0b82b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.