@@ -152,7 +152,7 @@ void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
152152 // WARNING: Be careful with internal buffer vertex alignment
153153 // when using RL_LINES or RL_TRIANGLES, data is aligned to fit
154154 // lines-triangles-quads in the same indexed buffers!!!
155- // rlCheckRenderBatchLimit(8);
155+ rlCheckRenderBatchLimit (8 );
156156
157157 rlBegin (RL_LINES );
158158 rlColor4ub (color .r , color .g , color .b , color .a );
@@ -164,7 +164,7 @@ void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
164164// Draw a point in 3D space, actually a small line
165165void DrawPoint3D (Vector3 position , Color color )
166166{
167- // rlCheckRenderBatchLimit(8);
167+ rlCheckRenderBatchLimit (8 );
168168
169169 rlPushMatrix ();
170170 rlTranslatef (position .x , position .y , position .z );
@@ -179,7 +179,7 @@ void DrawPoint3D(Vector3 position, Color color)
179179// Draw a circle in 3D world space
180180void DrawCircle3D (Vector3 center , float radius , Vector3 rotationAxis , float rotationAngle , Color color )
181181{
182- // rlCheckRenderBatchLimit(2*36);
182+ rlCheckRenderBatchLimit (2 * 36 );
183183
184184 rlPushMatrix ();
185185 rlTranslatef (center .x , center .y , center .z );
@@ -200,7 +200,7 @@ void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rota
200200// Draw a color-filled triangle (vertex in counter-clockwise order!)
201201void DrawTriangle3D (Vector3 v1 , Vector3 v2 , Vector3 v3 , Color color )
202202{
203- // rlCheckRenderBatchLimit(8);
203+ rlCheckRenderBatchLimit (8 );
204204
205205 rlBegin (RL_TRIANGLES );
206206 rlColor4ub (color .r , color .g , color .b , color .a );
@@ -215,7 +215,7 @@ void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color)
215215{
216216 if (pointCount >= 3 )
217217 {
218- // rlCheckRenderBatchLimit(3*(pointCount - 2));
218+ rlCheckRenderBatchLimit (3 * (pointCount - 2 ));
219219
220220 rlBegin (RL_TRIANGLES );
221221 rlColor4ub (color .r , color .g , color .b , color .a );
@@ -247,7 +247,7 @@ void DrawCube(Vector3 position, float width, float height, float length, Color c
247247 float y = 0.0f ;
248248 float z = 0.0f ;
249249
250- // rlCheckRenderBatchLimit(36);
250+ rlCheckRenderBatchLimit (36 );
251251
252252 rlPushMatrix ();
253253 // NOTE: Transformation is applied in inverse order (scale -> rotate -> translate)
@@ -328,7 +328,7 @@ void DrawCubeWires(Vector3 position, float width, float height, float length, Co
328328 float y = 0.0f ;
329329 float z = 0.0f ;
330330
331- // rlCheckRenderBatchLimit(36);
331+ rlCheckRenderBatchLimit (36 );
332332
333333 rlPushMatrix ();
334334 rlTranslatef (position .x , position .y , position .z );
@@ -405,7 +405,7 @@ void DrawCubeTexture(Texture2D texture, Vector3 position, float width, float hei
405405 float y = position .y ;
406406 float z = position .z ;
407407
408- // rlCheckRenderBatchLimit(36);
408+ rlCheckRenderBatchLimit (36 );
409409
410410 rlSetTexture (texture .id );
411411
@@ -468,7 +468,7 @@ void DrawCubeTextureRec(Texture2D texture, Rectangle source, Vector3 position, f
468468 float texWidth = (float )texture .width ;
469469 float texHeight = (float )texture .height ;
470470
471- // rlCheckRenderBatchLimit(36);
471+ rlCheckRenderBatchLimit (36 );
472472
473473 rlSetTexture (texture .id );
474474
@@ -556,7 +556,7 @@ void DrawSphere(Vector3 centerPos, float radius, Color color)
556556void DrawSphereEx (Vector3 centerPos , float radius , int rings , int slices , Color color )
557557{
558558 //int numVertex = (rings + 2)*slices*6;
559- // rlCheckRenderBatchLimit(numVertex);
559+ rlCheckRenderBatchLimit (numVertex );
560560
561561 rlPushMatrix ();
562562 // NOTE: Transformation is applied in inverse order (scale -> translate)
@@ -599,7 +599,7 @@ void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color
599599void DrawSphereWires (Vector3 centerPos , float radius , int rings , int slices , Color color )
600600{
601601 //int numVertex = (rings + 2)*slices*6;
602- // rlCheckRenderBatchLimit(numVertex);
602+ rlCheckRenderBatchLimit (numVertex );
603603
604604 rlPushMatrix ();
605605 // NOTE: Transformation is applied in inverse order (scale -> translate)
@@ -646,7 +646,7 @@ void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float h
646646 if (sides < 3 ) sides = 3 ;
647647
648648 //int numVertex = sides*6;
649- // rlCheckRenderBatchLimit(numVertex);
649+ rlCheckRenderBatchLimit (numVertex );
650650
651651 rlPushMatrix ();
652652 rlTranslatef (position .x , position .y , position .z );
@@ -705,7 +705,7 @@ void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float e
705705 if (sides < 3 ) sides = 3 ;
706706
707707 //int numVertex = sides*6;
708- // rlCheckRenderBatchLimit(numVertex);
708+ rlCheckRenderBatchLimit (numVertex );
709709
710710 Vector3 direction = { endPos .x - startPos .x , endPos .y - startPos .y , endPos .z - startPos .z };
711711 if ((direction .x == 0 ) && (direction .y == 0 ) && (direction .z == 0 )) return ;
@@ -764,7 +764,7 @@ void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, fl
764764 if (sides < 3 ) sides = 3 ;
765765
766766 //int numVertex = sides*8;
767- // rlCheckRenderBatchLimit(numVertex);
767+ rlCheckRenderBatchLimit (numVertex );
768768
769769 rlPushMatrix ();
770770 rlTranslatef (position .x , position .y , position .z );
@@ -798,7 +798,7 @@ void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, fl
798798 if (sides < 3 ) sides = 3 ;
799799
800800 //int numVertex = sides*6;
801- // rlCheckRenderBatchLimit(numVertex);
801+ rlCheckRenderBatchLimit (numVertex );
802802
803803 Vector3 direction = { endPos .x - startPos .x , endPos .y - startPos .y , endPos .z - startPos .z };
804804 if ((direction .x == 0 ) && (direction .y == 0 ) && (direction .z == 0 ))return ;
@@ -843,7 +843,7 @@ void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, fl
843843// Draw a plane
844844void DrawPlane (Vector3 centerPos , Vector2 size , Color color )
845845{
846- // rlCheckRenderBatchLimit(4);
846+ rlCheckRenderBatchLimit (4 );
847847
848848 // NOTE: Plane is always created on XZ ground
849849 rlPushMatrix ();
@@ -881,7 +881,7 @@ void DrawGrid(int slices, float spacing)
881881{
882882 int halfSlices = slices /2 ;
883883
884- // rlCheckRenderBatchLimit((slices + 2)*4);
884+ rlCheckRenderBatchLimit ((slices + 2 )* 4 );
885885
886886 rlBegin (RL_LINES );
887887 for (int i = - halfSlices ; i <= halfSlices ; i ++ )
0 commit comments