Problem with drawing on the screen in a 3d game
2 posters
Problem with drawing on the screen in a 3d game
Sorry for the bad title, I try to draw in 2d on the screen like tutorial 6 but it isn't working
I can't see the quad(opengl lines) or the debug touch thing. I can't see any thing else in the tutorial 6 code
Thanks
- Code:
sio2WindowEnterLandscape3D();
...
sio2WindowLeaveLandscape3D();
sio2WindowEnter2D(sio2->_SIO2window, 0.0f, 1.0f);
sio2WindowEnterLandscape2D(sio2->_SIO2window);
{
glTranslatef( sio2->_SIO2window->scl->x * 0.5f, sio2->_SIO2window->scl->y * 0.5f, 0.0f );
sio2MaterialRender(crosshair);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glEnableClientState(GL_VERTEX_ARRAY);
glTexCoordPointer(2, GL_FLOAT, 0, texCoords);
glVertexPointer(2, GL_FLOAT, 0, vertexArray);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
sio2WindowDebugTouch(sio2->_SIO2window);
}
sio2WindowLeaveLandscape2D(sio2->_SIO2window);
sio2WindowLeave2D();
I can't see the quad(opengl lines) or the debug touch thing. I can't see any thing else in the tutorial 6 code
Thanks
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: Problem with drawing on the screen in a 3d game
In version 1.3.3 I see a
sio2MaterialReset();
before the sio2WindowDebugTouch() call.
sio2MaterialReset();
before the sio2WindowDebugTouch() call.
zzajin- Posts : 81
Join date : 2008-10-14
Re: Problem with drawing on the screen in a 3d game
Thanks! That worked great
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Similar topics
» Drawing polylines
» Drawing over an UIImagePickerController image
» Audio Stops when screen goes black (not just locked)
» SIO2 Splash Screen
» Blank Screen Every Render
» Drawing over an UIImagePickerController image
» Audio Stops when screen goes black (not just locked)
» SIO2 Splash Screen
» Blank Screen Every Render
Permissions in this forum:
You cannot reply to topics in this forum