Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

OpenGL in C++ wrapped in Objective-C NSOpenGLView

Hi, I have a cross platform product that's in C++ that uses OpenGL extensively.

I have created a window with an NSOpenGLView which replaces all the AGL functions.


I've got things rendering in the window, all in the right place, but there are no textures on anything!

This is really strange because it renders everything perfect with the same OpenGL code in Carbon 32, but it has no textures in 64-bit Cocoa!!


Is this a context problem? I'm creating the context in the '.mm' file with [NSOpenGLContext alloc] initWithformat: shareConetext nil] making it current then heading off to the C++ to use this context for rendering. I get the feeling I need to create the context before the window using other commands, but I'm completely lost in the vast amounts of information out there.


Can anyone HELP! Thanks.

Dave.

OS X Mavericks (10.9.1)

Posted on Dec 30, 2013 6:22 AM

Reply

There are no replies.

OpenGL in C++ wrapped in Objective-C NSOpenGLView

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.