removed extranious function call & speed setting
authormatthew <matthew@owens.tech>
Sat, 3 Nov 2018 21:36:07 +0000 (21:36 +0000)
committermatthew <matthew@owens.tech>
Sat, 3 Nov 2018 21:36:07 +0000 (21:36 +0000)
gl/main.c

index 6084bac..24e4058 100644 (file)
--- a/gl/main.c
+++ b/gl/main.c
@@ -101,7 +101,6 @@ static void initShapes()
 static void initView()
 {
        camera = crpgCameraNew(vec3(0,0,3), vec3(0,1,0));
-       crpgCameraSetSpeed(camera, 20);
 
        crpgCubeSetCamera(cubes[0], crpgCameraGetMat(camera));
        crpgCubeSetCamera(cubes[1], crpgCameraGetMat(camera));
@@ -174,8 +173,6 @@ static void update()
 
 static void render()
 {
-       crpgCameraRender(camera, crpgTimeStepDelta());
-
        glClearColor(0.2, 0.3, 0.3, 1.0);
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);