mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Examples: OpenGL2 example doesn't need Glew
This commit is contained in:
parent
40b04a3701
commit
37d8d5c5be
@ -10,9 +10,7 @@
|
|||||||
#include "../../imgui.h"
|
#include "../../imgui.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
// Glfw/Glew
|
// Glfw
|
||||||
#define GLEW_STATIC
|
|
||||||
#include <GL/glew.h>
|
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT))
|
#define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT))
|
||||||
|
|
||||||
@ -141,8 +139,6 @@ void InitGL()
|
|||||||
glfwSetMouseButtonCallback(window, glfw_mouse_button_callback);
|
glfwSetMouseButtonCallback(window, glfw_mouse_button_callback);
|
||||||
glfwSetScrollCallback(window, glfw_scroll_callback);
|
glfwSetScrollCallback(window, glfw_scroll_callback);
|
||||||
glfwSetCharCallback(window, glfw_char_callback);
|
glfwSetCharCallback(window, glfw_char_callback);
|
||||||
|
|
||||||
glewInit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadFontsTexture()
|
void LoadFontsTexture()
|
||||||
|
Loading…
Reference in New Issue
Block a user