rlgl usable as standalone library

This commit is contained in:
raysan5 2017-07-21 10:42:57 +02:00
parent 84aff31973
commit 980d9d4cd4
3 changed files with 18 additions and 17 deletions

View file

@ -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);