Document code, and clean up
This commit is contained in:
@@ -18,7 +18,7 @@ vec3 axis[3] =
|
||||
{0, 0, 1},
|
||||
};
|
||||
|
||||
void __key_callback(GLFWwindow * window, int key, int scancode, int action, int mods )
|
||||
void __key_callback_input(GLFWwindow * window, int key, int scancode, int action, int mods )
|
||||
{
|
||||
if( action != GLFW_PRESS)
|
||||
return;
|
||||
@@ -29,7 +29,7 @@ void __key_callback(GLFWwindow * window, int key, int scancode, int action, int
|
||||
}
|
||||
}
|
||||
|
||||
void __window_callback(GLFWwindow * window, int w, int h)
|
||||
void __window_callback_input(GLFWwindow * window, int w, int h)
|
||||
{
|
||||
int m;
|
||||
|
||||
@@ -40,7 +40,7 @@ void __window_callback(GLFWwindow * window, int w, int h)
|
||||
glViewport((w - m) / 2, (h - m) / 2, m, m);
|
||||
}
|
||||
|
||||
void __mouse_callback(GLFWwindow* window, int button, int action, int mods)
|
||||
void __mouse_callback_input(GLFWwindow* window, int button, int action, int mods)
|
||||
{
|
||||
unsigned char green_value;
|
||||
double xpos, ypos;
|
||||
@@ -61,7 +61,7 @@ void __mouse_callback(GLFWwindow* window, int button, int action, int mods)
|
||||
}
|
||||
}
|
||||
|
||||
void __scroll_callback(GLFWwindow* window, double xoffset, double yoffset)
|
||||
void __scroll_callback_input(GLFWwindow* window, double xoffset, double yoffset)
|
||||
{
|
||||
versor p = GLM_QUAT_IDENTITY_INIT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user