Exemple #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 ();
}
//----------------------------------------------------------------//
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 ();
}
Exemple #3
0
//----------------------------------------------------------------//
void MOAIQuadBrush::BindVertexFormat ( MOAIGfxDevice& gfxDevice ) {
	
	gfxDevice.BindBufferedDrawing ( MOAIVertexFormatMgr::XYZWUVC );
}
Exemple #4
0
//----------------------------------------------------------------//
void MOAIQuadBrush::BindVertexFormat ( MOAIGfxDevice& gfxDevice ) {
	
	gfxDevice.SetVertexPreset ( MOAIVertexFormatMgr::XYZWUVC );
	gfxDevice.SetPrimType ( GL_TRIANGLES );
}