   OpenGLES
  I am trying to build a debugdraw class for bullet specifically targeting the android OS.class GLDebugDrawer : public btIDebugDraw{int m_debugMode;public:GLDebugDrawer();virtual voiddrawLine(const btVector3& from,const btVector3& to,const btVector3& fromColor, const btVector3& toColor);virtual voiddrawLine(const btVector3& from,const btVector3& to,const btVector3& color);virtual voiddrawSphere (const btVector3& p, btScalar radius, const btVector3& color);virtual voiddrawBox (const btVector3& boxMin, const btVector3& boxMax, const btVector3& color, btScalar alpha);virtual voiddrawTriangle(const btVector3& a,const btVector3& b,const btVector3& c,const btVector3& color,btScalar alpha);virtual voiddrawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color);virtual voidreportErrorWarning(const char* warningString);virtual voiddraw3dText(const btVector3& location,const char* textString);virtual voidsetDebugMode(int debugMode);virtual intgetDebugMode() const { return m_debugMode;}};The first function I have implemented is the drawLine function.  I just want to know if this looks correct.voidGLDebugDrawer::drawLine(const btVector3& from,const btVector3& to,const btVector3& fromColor, const btVector3& toColor){GLfloat vertices[3][3]={0};glColor4f(fromColor.getX(), fromColor.getY(), fromColor.getZ(),1.0);vertices[0][0] = from.getX(); vertices[0][1] = from.getY();vertices[0][2] = from.getZ();vertices[1][0] = to.getX(); vertices[1][1] = to.getY();vertices[1][2] = to.getZ();glColor4f(toColor.getX(), toColor.getY(), toColor.getZ(),1.0);glEnableClientState(GL_VERTEX_ARRAY);glVertexPointer(2, GL_FLOAT, 0, vertices);glDrawArrays(GL_LINES, 0, 2);glDisableClientState(GL_VERTEX_ARRAY);glFinish();}My goal is to completely implement all member functions of this class...so I will be back, I am sure.   