diff options
| author | raysan5 <raysan5@gmail.com> | 2017-07-21 10:42:57 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2017-07-21 10:42:57 +0200 |
| commit | 980d9d4cd4ab941afc53bf8a83ea2a18d28ee4e2 (patch) | |
| tree | a8247bbd4ecc5e32b9e5fca91b1d8d8970b0d834 /examples | |
| parent | 84aff31973667e6bec29915d60971f9a5bb02a44 (diff) | |
| download | raylib-980d9d4cd4ab941afc53bf8a83ea2a18d28ee4e2.tar.gz raylib-980d9d4cd4ab941afc53bf8a83ea2a18d28ee4e2.zip | |
rlgl usable as standalone library
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/others/rlgl_standalone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c index 70cffee1..5de77bc2 100644 --- a/examples/others/rlgl_standalone.c +++ b/examples/others/rlgl_standalone.c @@ -91,7 +91,7 @@ int main(void) glfwSwapInterval(1); // Load OpenGL 3.3 supported extensions - rlglLoadExtensions(glfwGetProcAddress); + rlLoadExtensions(glfwGetProcAddress); //-------------------------------------------------------- // Initialize OpenGL context (states and resources) @@ -130,7 +130,7 @@ int main(void) rlClearScreenBuffers(); // Clear current framebuffer // Calculate projection matrix (from perspective) and view matrix from camera look at - Matrix matProj = MatrixPerspective(camera.fovy, (double)screenWidth/(double)screenHeight, 0.01, 1000.0); + Matrix matProj = MatrixPerspective(camera.fovy*DEG2RAD, (double)screenWidth/(double)screenHeight, 0.01, 1000.0); MatrixTranspose(&matProj); Matrix matView = MatrixLookAt(camera.position, camera.target, camera.up); |
