Blank Images

View previous topic View next topic Go down

Blank Images

Post  DumbGames on 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

View user profile

Back to top Go down

Re: Blank Images

Post  uprise78 on 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

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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