//----------------------------------------------------------------// void MOAIBox2DDebugDraw::WriteVtx ( USDrawBuffer& drawBuffer, float x, float y ) { USVec2D vtx; vtx.mX = x * this->mScale; vtx.mY = y * this->mScale; drawBuffer.WriteVtx ( vtx ); drawBuffer.WritePenColor (); }
SUPPRESS_EMPTY_FILE_WARNING #if USE_BOX2D #include <cstdio> #include <cstdarg> #include <cstring> //================================================================// // MOAIBox2DDebugDraw //================================================================// //----------------------------------------------------------------// void MOAIBox2DDebugDraw::BindVertexFormat ( USDrawBuffer& drawBuffer ) { drawBuffer.SetVertexPreset ( USVertexFormatMgr::VTX_FMT_XYC ); }
//----------------------------------------------------------------// void USGLQuad::BindVertexFormat ( USDrawBuffer& drawBuffer ) { drawBuffer.SetVertexPreset ( USVertexFormatMgr::VTX_FMT_XYUVC ); drawBuffer.SetPrimType ( GL_TRIANGLES ); }