mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 21:04:54 +00:00
Replace GL booleans with public macros
This commit is contained in:
+5
-5
@@ -72,7 +72,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
|
||||
}
|
||||
|
||||
case GLFW_KEY_ESCAPE:
|
||||
glfwSetWindowShouldClose(window, GL_TRUE);
|
||||
glfwSetWindowShouldClose(window, GLFW_TRUE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -80,7 +80,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
int i;
|
||||
GLboolean running = GL_TRUE;
|
||||
int running = GLFW_TRUE;
|
||||
GLFWwindow* windows[4];
|
||||
|
||||
glfwSetErrorCallback(error_callback);
|
||||
@@ -88,8 +88,8 @@ int main(int argc, char** argv)
|
||||
if (!glfwInit())
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
glfwWindowHint(GLFW_DECORATED, GL_FALSE);
|
||||
glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
|
||||
glfwWindowHint(GLFW_DECORATED, GLFW_FALSE);
|
||||
glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);
|
||||
|
||||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
@@ -125,7 +125,7 @@ int main(int argc, char** argv)
|
||||
glfwSwapBuffers(windows[i]);
|
||||
|
||||
if (glfwWindowShouldClose(windows[i]))
|
||||
running = GL_FALSE;
|
||||
running = GLFW_FALSE;
|
||||
}
|
||||
|
||||
glfwPollEvents();
|
||||
|
||||
Reference in New Issue
Block a user