Ejemplo n.º 1
0
//----------------------------------------------------------------//
void MOAIBox2DDebugDraw::WriteVtx ( MOAIGfxDevice& gfxDevice, float x, float y ) {

	USVec2D vtx;
	vtx.mX = x * this->mScale;
	vtx.mY = y * this->mScale;
	gfxDevice.WriteVtx ( vtx );
	gfxDevice.WritePenColor4b ();
}
Ejemplo n.º 2
0
//----------------------------------------------------------------//
void MOAIBox2DDebugDraw::WriteVtx ( MOAIGfxDevice& gfxDevice, float x, float y ) {

    ZLVec3D vtx;
    vtx.mX = x * this->mScale;
    vtx.mY = y * this->mScale;
    vtx.mZ = 0.0f;
    gfxDevice.WriteVtx ( vtx );
    gfxDevice.WriteFinalColor4b ();
}
Ejemplo n.º 3
0
//----------------------------------------------------------------//
void MOAIQuadBrush::BindVertexFormat ( MOAIGfxDevice& gfxDevice ) {
	
	gfxDevice.BindBufferedDrawing ( MOAIVertexFormatMgr::XYZWUVC );
}
Ejemplo n.º 4
0
//----------------------------------------------------------------//
void MOAIQuadBrush::BindVertexFormat ( MOAIGfxDevice& gfxDevice ) {
	
	gfxDevice.SetVertexPreset ( MOAIVertexFormatMgr::XYZWUVC );
	gfxDevice.SetPrimType ( GL_TRIANGLES );
}