|Jun 23, 2013, 10:09 AM||#1|
OpenGL Core Profile breaks my app
I know this is a common title, but I don't even know what the problem is. I have been working on porting my OpenGL 1.1 app to 3.2 and I am not getting anything on the screen. I have set up all of my shaders properly, as evidenced by the fact that using a legacy profile gives me gorgeous results. It sounds like I need to set up a VAO, so I did it before I compiled shaders. Still nothing. I am getting no error messages, no crashes, freezes, or anything - just a window with a background color equal to the color I set with glClearColor. I cannot go in to too many details because I am using some Mavericks-specific code and that is under NDA, but even with non-Mavericks stuff running on Mountain Lion I am not getting anything.
Do I need to set up a VBO too? Do vertex arrays not work anymore?
In addition to answering those two questions, can somebody give me a good link to some Cocoa code (as much plain C as possible) that can help? All I can find with Google is a bunch of C++ and C# code that uses syntax I have never seen before, so I can't get much out of them.
|Jun 23, 2013, 01:27 PM||#2|
Google search terms:
opengl sample site:developer.apple.com
Links to Apple sample code, from the first page of results:
Or visit Apple's main Dev Navigation site:
then click Sample Code on the left, and enter opengl as the search term.
As a strategy, I suggest reversing your current approach of trying to make non-working code work. Instead, take one of the sample projects (presumably known-working), build it, and confirm it works. Then start modifying it to incrementally approach your non-working code. Recompile and rerun frequently (after every change wouldn't be too often). When the code stops working, you've found the critical difference.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|If your phone breaks while using an app, would Apple compensate?||thermal||iPhone||27||Feb 10, 2014 10:36 AM|
|Find My iPhone Updated for iOS 7, Breaks App for Non-Developers [Update: Fixed]||MacRumors||MacRumors.com News Discussion||139||Aug 26, 2013 01:48 PM|
|Official YouTube app update - breaks HD over LTE?||Travisimo||iPhone Tips, Help and Troubleshooting||3||Mar 4, 2013 04:58 PM|
|Remove recent photos from the Message.app profile section when updating profile photo||procrit||OS X 10.8 Mountain Lion||0||Jan 6, 2013 08:55 PM|
|OS7>OS8 breaks Vid Monitor app?||Scott Loiselle||Mac Basics and Help||0||Aug 14, 2012 01:52 PM|
All times are GMT -5. The time now is 08:23 PM.