Attempting to add landscape IB buttons to an openGL View
Hi folks,
I've written too much of my own GUI code over the last few months and decided to bite the bullet. It's time to add some UIKit stuff over the top of my lovely landscape openGL screen.
I've looked at 2 ways of doing this:-
- Adding a view controller and making the EAGL view a sub-view of it
- NOT adding a Simply adding buttons over the top of the EAGL view
I've tried the former and have had no success in getting the text buttons to display in Landscape format.
Any suggestions?
1) How would you best add gui buttons to an EAGLView based app without destroying frame-rate? (Note: I'm not asking for help with my current frame rate - it's great at the moment as I've done everything correctly. These additional buttons will only be displayed when choosing options, and then disappear).
2) How do you get IB created buttons to understand that you've defaulted to a landscape screen. IB is allowing me to change the ViewController to landscape, and draws the buttons nice and side-on. This is then completely ignored when actually creating the buttons at runtime.
Any help much appreciated. If I don't figure this out soon I'll just end up making my own GUI... again (I've been doing this a while, so this'll be about my 6th GUI).
I've written too much of my own GUI code over the last few months and decided to bite the bullet. It's time to add some UIKit stuff over the top of my lovely landscape openGL screen.
I've looked at 2 ways of doing this:-
- Adding a view controller and making the EAGL view a sub-view of it
- NOT adding a Simply adding buttons over the top of the EAGL view
I've tried the former and have had no success in getting the text buttons to display in Landscape format.
Any suggestions?
1) How would you best add gui buttons to an EAGLView based app without destroying frame-rate? (Note: I'm not asking for help with my current frame rate - it's great at the moment as I've done everything correctly. These additional buttons will only be displayed when choosing options, and then disappear).
2) How do you get IB created buttons to understand that you've defaulted to a landscape screen. IB is allowing me to change the ViewController to landscape, and draws the buttons nice and side-on. This is then completely ignored when actually creating the buttons at runtime.
Any help much appreciated. If I don't figure this out soon I'll just end up making my own GUI... again (I've been doing this a while, so this'll be about my 6th GUI).
| Messages In This Thread |
|
Attempting to add landscape IB buttons to an openGL View - Madrayken - Oct 15, 2010 10:43 AM
RE: Attempting to add landscape IB buttons to an openGL View - iamflimflam1 - Oct 17, 2010, 07:03 AM
|
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Landscape app sometimes thinks portrait | bruss14 | 1 | 1,876 |
Dec 30, 2009 01:32 PM Last Post: bruss14 |
|
| Chipmunk moonbuggy dynamic landscape | wonza | 5 | 3,127 |
Nov 6, 2009 01:08 AM Last Post: wonza |
|
| 2D Control Buttons on Top of 3D OpenGl. | Bersaelor | 1 | 3,485 |
Sep 23, 2009 09:56 AM Last Post: Skorche |
|
| iPhone opengl 2d sprites landscape mode | mnorton | 6 | 4,914 |
Sep 9, 2009 08:27 PM Last Post: mnorton |
|
| How do I misuse volume buttons? | jaber | 15 | 5,878 |
Aug 26, 2009 11:24 AM Last Post: Frank C. |
|

