From 5bf9675d38c2016653a261182d4dd0c8fbb419a0 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Thu, 19 Dec 2013 12:08:06 +0100 Subject: Update to version 1.0.3 View CHANGELOG for full list of changes --- src/models.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/models.c') diff --git a/src/models.c b/src/models.c index 8e4f3555..1f145523 100644 --- a/src/models.c +++ b/src/models.c @@ -181,8 +181,6 @@ void DrawSphereWires(Vector3 centerPos, float radius, Color color) // Draw a cylinder/cone void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) // Could be used for pyramid and cone! { - static int count = 0; - Vector3 a = { position.x, position.y + height, position.z }; Vector3 d = { 0.0f, 1.0f, 0.0f }; Vector3 p; @@ -202,7 +200,7 @@ void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float h glPushMatrix(); //glTranslatef(centerPos.x, centerPos.y, centerPos.z); - glRotatef(DEG2RAD*count, 0.0f, 1.0f, 0.0f); + //glRotatef(degrees, 0.0f, 1.0f, 0.0f); //glScalef(1.0f, 1.0f, 1.0f); // Draw cone top @@ -239,7 +237,7 @@ void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float h { glPushMatrix(); //glTranslatef(centerPos.x, centerPos.y, centerPos.z); - glRotatef(DEG2RAD*count, 0.0f, 1.0f, 0.0f); + //glRotatef(degrees, 0.0f, 1.0f, 0.0f); //glScalef(1.0f, 1.0f, 1.0f); // Draw cylinder top (pointed cap) @@ -290,8 +288,6 @@ void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float h glPopMatrix(); } - - count += 1; } // Draw a cylinder/cone wires -- cgit v1.2.3