@@ -17,7 +17,7 @@ GLESDebugDraw::GLESDebugDraw( float32 ratio )
17
17
}
18
18
19
19
20
- void GLESDebugDraw::DrawPolygon (const b2Vec2* old_vertices, int32 vertexCount, const b2Color& color)
20
+ void GLESDebugDraw::DrawPolygon (const b2Vec2* old_vertices, int vertexCount, const b2Color& color)
21
21
{
22
22
b2Vec2* vertices = new b2Vec2[vertexCount];
23
23
for ( int i=0 ;i<vertexCount;i++)
@@ -33,7 +33,7 @@ void GLESDebugDraw::DrawPolygon(const b2Vec2* old_vertices, int32 vertexCount, c
33
33
delete[] vertices;
34
34
}
35
35
36
- void GLESDebugDraw::DrawSolidPolygon (const b2Vec2* old_vertices, int32 vertexCount, const b2Color& color)
36
+ void GLESDebugDraw::DrawSolidPolygon (const b2Vec2* old_vertices, int vertexCount, const b2Color& color)
37
37
{
38
38
b2Vec2* vertices = new b2Vec2[vertexCount];
39
39
for ( int i=0 ;i<vertexCount;i++) {
@@ -61,7 +61,7 @@ void GLESDebugDraw::DrawCircle(const b2Vec2& center, float32 radius, const b2Col
61
61
float32 theta = 0 .0f ;
62
62
63
63
GLfloat* glVertices = new GLfloat[vertexCount*2 ];
64
- for (int32 i = 0 ; i < k_segments; ++i)
64
+ for (int i = 0 ; i < k_segments; ++i)
65
65
{
66
66
b2Vec2 v = center + radius * b2Vec2 (cosf (theta), sinf (theta));
67
67
glVertices[i*2 ]=v.x * mRatio ;
@@ -86,7 +86,7 @@ void GLESDebugDraw::DrawSolidCircle(const b2Vec2& center, float32 radius, const
86
86
float32 theta = 0 .0f ;
87
87
88
88
GLfloat* glVertices = new GLfloat[vertexCount*2 ];
89
- for (int32 i = 0 ; i < k_segments; ++i)
89
+ for (int i = 0 ; i < k_segments; ++i)
90
90
{
91
91
b2Vec2 v = center + radius * b2Vec2 (cosf (theta), sinf (theta));
92
92
glVertices[i*2 ]=v.x * mRatio ;
0 commit comments