Landscape Mode in OpenGL ES - Help
I've read on the OS guide to modify my view transform to rotate everything on a 90 degree angle when I want to render in landscape mode.
To do this I:
glTranslate( 0, 0, 0 );
glRotate( 90, 0, 0, 0 );
[_mytexture] drawAtPoint:CGPointMake(0,0);
The problem is nothing happens.....I looked at the helper code for drawAtPoint and it appears to be just drawing a quad at the given coordinates. What do I need to do in order for it to accept the rotate transform?
Is there an easier way to do Landscape mode? It seems all you would have to do is rotate your view and be done with it.
I am not new to 3D programming but am VERY new to OpenGL. Help with this would be appreciated.
Thanks!
To do this I:
glTranslate( 0, 0, 0 );
glRotate( 90, 0, 0, 0 );
[_mytexture] drawAtPoint:CGPointMake(0,0);
The problem is nothing happens.....I looked at the helper code for drawAtPoint and it appears to be just drawing a quad at the given coordinates. What do I need to do in order for it to accept the rotate transform?
Is there an easier way to do Landscape mode? It seems all you would have to do is rotate your view and be done with it.
I am not new to 3D programming but am VERY new to OpenGL. Help with this would be appreciated.
Thanks!
| Messages In This Thread |
|
Landscape Mode in OpenGL ES - Help - Lostlogic - Oct 19, 2008 07:43 AM
Landscape Mode in OpenGL ES - Help - maximile - Oct 19, 2008, 07:53 AM
Landscape Mode in OpenGL ES - Help - Lostlogic - Oct 19, 2008, 07:55 AM
Landscape Mode in OpenGL ES - Help - Blacktiger - Oct 19, 2008, 11:51 AM
Landscape Mode in OpenGL ES - Help - smallstepforman - Oct 23, 2008, 03:28 PM
Landscape Mode in OpenGL ES - Help - kelvin - Oct 23, 2008, 09:37 PM
|
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Attempting to add landscape IB buttons to an openGL View | Madrayken | 1 | 3,076 |
Oct 17, 2010 07:03 AM Last Post: iamflimflam1 |
|
| Landscape app sometimes thinks portrait | bruss14 | 1 | 1,877 |
Dec 30, 2009 01:32 PM Last Post: bruss14 |
|
| Chipmunk moonbuggy dynamic landscape | wonza | 5 | 3,132 |
Nov 6, 2009 01:08 AM Last Post: wonza |
|
| iPhone opengl 2d sprites landscape mode | mnorton | 6 | 4,914 |
Sep 9, 2009 08:27 PM Last Post: mnorton |
|
| How can I add autorotate (landscape, portrait) to an OpenGL ES app? | riruilo | 6 | 7,726 |
Feb 12, 2009 07:51 AM Last Post: AnotherJake |
|

