diff options
| author | raysan5 <raysan5@gmail.com> | 2013-12-19 12:08:06 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2013-12-19 12:08:06 +0100 |
| commit | 5bf9675d38c2016653a261182d4dd0c8fbb419a0 (patch) | |
| tree | ae91869090b084059905e963f6a6b0486f51d097 /src/models.c | |
| parent | 134dcd4a6ab98d44e6090e83c1ce6ad1e0053ddb (diff) | |
| download | raylib-5bf9675d38c2016653a261182d4dd0c8fbb419a0.tar.gz raylib-5bf9675d38c2016653a261182d4dd0c8fbb419a0.zip | |
Update to version 1.0.3
View CHANGELOG for full list of changes
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 8 |
1 files changed, 2 insertions, 6 deletions
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 |
