Review TraceLog() usage

This commit is contained in:
raysan5
2017-07-02 12:43:49 +02:00
parent 9f09f6f550
commit c04cb0a65e
2 changed files with 15 additions and 46 deletions

View File

@@ -62,10 +62,10 @@ int main(void)
if (!glfwInit())
{
TraceLog(WARNING, "GLFW3: Can not initialize GLFW");
TraceLog(LOG_WARNING, "GLFW3: Can not initialize GLFW");
return 1;
}
else TraceLog(INFO, "GLFW3: GLFW initialized successfully");
else TraceLog(LOG_INFO, "GLFW3: GLFW initialized successfully");
glfwWindowHint(GLFW_SAMPLES, 4);
glfwWindowHint(GLFW_DEPTH_BITS, 16);
@@ -81,7 +81,7 @@ int main(void)
glfwTerminate();
return 2;
}
else TraceLog(INFO, "GLFW3: Window created successfully");
else TraceLog(LOG_INFO, "GLFW3: Window created successfully");
glfwSetWindowPos(window, 200, 200);
@@ -190,7 +190,7 @@ int main(void)
// GLFW3: Error callback
static void ErrorCallback(int error, const char* description)
{
TraceLog(ERROR, description);
TraceLog(LOG_ERROR, description);
}
// GLFW3: Keyboard callback