Replace these OpenGL functions with OpenGL ES?
        Posted  
        
            by 
                Constantin
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Constantin
        
        
        
        Published on 2011-01-11T12:46:35Z
        Indexed on 
            2011/01/14
            12:53 UTC
        
        
        Read the original article
        Hit count: 548
        
I search for a possibility to migrate my PC OpenGL application and an iPhone App into one XCode project (for convenience). So if I make chances to these source files I want to apply this for both plattforms and want to be able to compile for both plattforms from one project. How could I accomplish this? Is there a way to do so in XCode 4 or 3.25? Any help would be highly appreciated
edit: Okay, I went so far - All in all, it seems to work with XCode 4. My only problems are these openGL/Glut functions, that aren't working on iPhone:
glPushAttrib( GL_DEPTH_BUFFER_BIT | GL_LIGHTING_BIT );
glPopAttrib();
glutGet(GLUT_ELAPSED_TIME);
glutSwapBuffers();
Any ideas how to fix these issues?
© Stack Overflow or respective owner