Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test for camera code in display.c

  • Loading branch information...
commit a8efbbb3070ec535bab64a41752b4684328984e3 1 parent c2947d0
@Cloudef authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/src/display.c
View
9 test/src/display.c
@@ -20,6 +20,7 @@ int main(int argc, char **argv)
GLFWwindow window;
glhckTexture *texture;
glhckObject *cube;
+ glhckCamera *camera;
float spin = 0;
float now = 0;
@@ -45,6 +46,13 @@ int main(int argc, char **argv)
RUNNING = 1;
+ /* test camera */
+ if (!(camera = glhckCameraNew()))
+ return EXIT_FAILURE;
+
+ /* bind the camera */
+ glhckCameraBind(camera);
+
/* this texture is useless when toggling PMD testing */
if (!(texture = glhckTextureNew("../media/glhck.png",
GLHCK_TEXTURE_DEFAULTS)))
@@ -97,6 +105,7 @@ int main(int argc, char **argv)
}
glhckObjectFree(cube);
glhckTextureFree(texture);
+ glhckCameraFree(camera);
glhckTerminate();
glfwTerminate();
Please sign in to comment.
Something went wrong with that request. Please try again.