Hello,
I am using the following code to draw a box on screen... using existing Projection & Modelview Matrix's
glMatrixMode(GL_PROJECTION);
glLoadMatrixf( getProjectionMatrix() );
glMatrixMode(GL_MODELVIEW);
glLoadMatrixf( getModelViewMatrix() );
DrawBox( 20.f, 20.f, 20.f, 0 );
How do I code the same thing with EdgeLib?
i.e. Using my own Projection & Model Matrix's. What do I need to change below? (Taken From the Animate3D Turtle demo.)
display->Perspective3D(display->GetWidth(), display->GetHeight());
display->WorldReset();
display->WorldTranslate(0, 0, zoom);
#if !defined(EGL_USEGL)
display->WorldScale(65536 * 2, 65536 * 2, 65536 * 2);
#endif
display->WorldRotate(256, 0, 0);
display->WorldRotate(0, rotation, 0);
display->BindTexture(&block_tex);
display->SetShading(E3D_GOURAUD | E3D_TEXTURE);
display->Render(&block);
turtle.Animate(anitimer / 2);
display->BindTexture(&turtle_tex);
display->SetShading(rendertype_shading[rendertype]);
display->Render(&turtle);