OpenGL and Carbon Controls in the same Window

Hasty
Unregistered
 
Post: #1
Hey folks, can anyone direct me to some information that can get me on my way to mix an OpenGL view and Carbon Controls in the same window? I've got the basis of my game set up in C++ and I want to build a simple editor so that I can add elements and modify values of my game elements.

I'm sure a few of you would recommend to use Cocoa, but is there a way I can use my static libs (some of them which use Carbon API calls) with a Cocoa application without having to modify the C++ lib?

t.
Quote this message in a reply
Luminary
Posts: 5,125
Joined: 2002.04
Post: #2
You can use AGL_BUFFER_RECT to restrict your context to drawing only in a portion of the window.

Carbon and Cocoa mix happily in general terms, but not so happily in terms of GUI within a window. AGL contexts are also completely different beasts to NSGL contexts (though they each have a CGL context underneath).
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Suggestions for controls in a tank driving game iamflimflam1 0 1,619 Oct 7, 2010 03:33 AM
Last Post: iamflimflam1
  Advice on coding of On-Screen Controls ( Joystick and multiple buttons) Elphaba 5 2,638 Aug 10, 2009 11:02 PM
Last Post: Elphaba
  C commands in a Carbon window. mikey 4 2,700 May 8, 2009 12:17 PM
Last Post: mikey
  No window focus in Carbon app on 10.5 withnail 3 3,435 Jan 9, 2008 02:25 PM
Last Post: OneSadCookie
  Carbon Opengl clapton541 9 6,174 Mar 25, 2007 08:54 PM
Last Post: AnotherJake