Blank Images
2 posters
Blank Images
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();
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
Re: Blank Images
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
Similar topics
» Blank Screens at run
» how to paste a small images inside SIO2widget's SIO2image
» Cant use my own images!
» sio2Widget and .png images
» Loading PNG images
» how to paste a small images inside SIO2widget's SIO2image
» Cant use my own images!
» sio2Widget and .png images
» Loading PNG images
Permissions in this forum:
You cannot reply to topics in this forum