Skip to content

Commit

Permalink
P A I N
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Aug 13, 2022
1 parent 092b6f9 commit bf2ad9d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ void DrawSphere(Vector3 centerPos, float radius, Color color)
// Draw sphere with extended parameters
void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color)
{
//int numVertex = (rings + 2)*slices*6;
int numVertex = (rings + 2)*slices*6;
rlCheckRenderBatchLimit(numVertex);

rlPushMatrix();
Expand Down Expand Up @@ -598,7 +598,7 @@ void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color
// Draw sphere wires
void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color)
{
//int numVertex = (rings + 2)*slices*6;
int numVertex = (rings + 2)*slices*6;
rlCheckRenderBatchLimit(numVertex);

rlPushMatrix();
Expand Down Expand Up @@ -645,7 +645,7 @@ void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float h
{
if (sides < 3) sides = 3;

//int numVertex = sides*6;
int numVertex = sides*6;
rlCheckRenderBatchLimit(numVertex);

rlPushMatrix();
Expand Down Expand Up @@ -704,7 +704,7 @@ void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float e
{
if (sides < 3) sides = 3;

//int numVertex = sides*6;
int numVertex = sides*6;
rlCheckRenderBatchLimit(numVertex);

Vector3 direction = { endPos.x - startPos.x, endPos.y - startPos.y, endPos.z - startPos.z };
Expand Down Expand Up @@ -763,7 +763,7 @@ void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, fl
{
if (sides < 3) sides = 3;

//int numVertex = sides*8;
int numVertex = sides*8;
rlCheckRenderBatchLimit(numVertex);

rlPushMatrix();
Expand Down Expand Up @@ -797,7 +797,7 @@ void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, fl
{
if (sides < 3) sides = 3;

//int numVertex = sides*6;
int numVertex = sides*6;
rlCheckRenderBatchLimit(numVertex);

Vector3 direction = { endPos.x - startPos.x, endPos.y - startPos.y, endPos.z - startPos.z };
Expand Down

0 comments on commit bf2ad9d

Please sign in to comment.