Make variable "mvp_uniform" extern
This commit is contained in:
parent
eb861952a4
commit
1b3c1c522b
2 changed files with 4 additions and 1 deletions
|
@ -4,4 +4,6 @@
|
|||
#include <GL/glew.h>
|
||||
#include <GL/glfw.h>
|
||||
|
||||
extern GLuint mvp_uniform;
|
||||
|
||||
#endif // _GL_HPP_
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "gl.hpp"
|
||||
#include "program.hpp"
|
||||
#include "object.hpp"
|
||||
|
||||
|
@ -22,7 +23,7 @@ static void iterate();
|
|||
static GLFWCALL void on_key(int key, int action);
|
||||
static EM_BOOL on_em_mousemove(int event_type, const EmscriptenMouseEvent *mouse_event, void *user_data);
|
||||
|
||||
static GLuint mvp_uniform;
|
||||
GLuint mvp_uniform;
|
||||
static GLuint texture_uniform;
|
||||
|
||||
static bool keys[GLFW_KEY_LAST];
|
||||
|
|
Reference in a new issue