diff options
| author | Ray <[email protected]> | 2018-11-06 15:12:01 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-11-06 15:12:01 +0100 |
| commit | ff64e860a1565fa3ad570b979f5f20c320e94b04 (patch) | |
| tree | ddfe4b7aa5dd30acafb2b295a844b4f503156ffe /examples | |
| parent | fc1c9505ba94007a6c03d7f61a14df4a72637346 (diff) | |
| download | raylib-ff64e860a1565fa3ad570b979f5f20c320e94b04.tar.gz raylib-ff64e860a1565fa3ad570b979f5f20c320e94b04.zip | |
Minor review
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/others/rlgl_standalone.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c index c62f7d81..4b262bbd 100644 --- a/examples/others/rlgl_standalone.c +++ b/examples/others/rlgl_standalone.c @@ -17,8 +17,7 @@ * * COMPILATION: * gcc -o rlgl_standalone.exe rlgl_standalone.c -s -Iexternal\include -I..\..\src \ -* -L. -Lexternal\lib -lglfw3 -lopengl32 -lgdi32 -Wall -std=c99 \ -* -DRAYMATH_IMPLEMENTATION -DGRAPHICS_API_OPENGL_33 +* -L. -Lexternal\lib -lglfw3 -lopengl32 -lgdi32 -Wall -std=c99 -DGRAPHICS_API_OPENGL_33 * * LICENSE: zlib/libpng * @@ -96,7 +95,7 @@ int main(void) glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); - glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE); + //glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE); GLFWwindow *window = glfwCreateWindow(screenWidth, screenHeight, "rlgl standalone", NULL, NULL); @@ -112,7 +111,7 @@ int main(void) glfwSetKeyCallback(window, KeyCallback); glfwMakeContextCurrent(window); - glfwSwapInterval(1); + glfwSwapInterval(0); // Load OpenGL 3.3 supported extensions rlLoadExtensions(glfwGetProcAddress); @@ -146,7 +145,7 @@ int main(void) { // Update //---------------------------------------------------------------------------------- - // ... + //camera.position.x += 0.01f; //---------------------------------------------------------------------------------- // Draw @@ -279,7 +278,7 @@ static void DrawGrid(int slices, float spacing) // Draw cube // NOTE: Cube position is the center position -void DrawCube(Vector3 position, float width, float height, float length, Color color) +static void DrawCube(Vector3 position, float width, float height, float length, Color color) { float x = 0.0f; float y = 0.0f; @@ -353,7 +352,7 @@ void DrawCube(Vector3 position, float width, float height, float length, Color c } // Draw cube wires -void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) +static void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) { float x = 0.0f; float y = 0.0f; |
