Page 1 of 1

Mix 2D and 3D

PostPosted: Mar 6, 2010 @ 1:45pm
by oliverh
Hi Edgelib team!

I am new to Edgelib and can't find a solution for the following problem. I am trying to mix 2D graphics for menus and 3D graphics for the game. Pretty much like mixing the blastar and turtle example. I tried to first draw menu items (text, etc) to a background image, then upload the texture and display it using display->Perspective2D and display->BltFast which worked out but is very slow, so effects like flashing text (blastar) don't make sense. As an alternative to 2D menu text handling I tried to use the display->DrawFont in 3D but in contrast to 2D there doesn't seem to be a possibility to change text properties like color.

Thanks in advance for any advice!

PostPosted: Mar 12, 2010 @ 7:13pm
by edge

PostPosted: Mar 14, 2010 @ 12:32pm
by oliverh
Hi Edge,

thanks for your answer. Text colors now work perfectly. One more question about setting the display orientation. config->orientation = DOR_LANDSCAPE works using the edgelib renderer. Using OpenGL orientation is always PORTRAIT on the device. How can I switch in OpenGL?

Thanks,
Olli

PostPosted: Mar 15, 2010 @ 7:40pm
by edge