FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Blank Images

2 posters

Go down

Blank Images Empty Blank Images

Post  DumbGames Thu Dec 18, 2008 3:24 pm

I was hoping to use the Texture2D library to implement sprites on top of the 3D rendered scene (ie for buttons, menus, etc). I am trying to draw them in the 2DLandscape mode, but they come up blank (white). This is the code I am using. what am I doing wrong?


sio2WindowEnter2D( sio2->_SIO2window );
{
sio2WindowEnterLandscape2D( sio2->_SIO2window );
{
glPushMatrix();
glTranslatef( 100, 100, 0);
glRotatef(45, 0, 0, 1);
glScalef(.1,.1,1);
[_textures[kTexture_Title] drawAtPoint:CGPointZero];
glPopMatrix();

}
sio2WindowLeaveLandscape2D( sio2->_SIO2window );
}
sio2WindowLeave2D();

DumbGames

Posts : 16
Join date : 2008-12-03

Back to top Go down

Blank Images Empty Re: Blank Images

Post  uprise78 Thu Dec 18, 2008 4:48 pm

Check out SIO2Widget. It should do exactly what you are looking for. There is some code posted just a few days ago.

uprise78

Posts : 228
Join date : 2008-10-31

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum