Carbon and OpenGL

Post: #1
Hello, I am wanting to use Carbon for the UI to my game. My game uses OpenGL. Is there anything like an NSOpenGLView for Carbon? How would I display OpenGL on the Carbon window canvas? Example?
Quote this message in a reply
Posts: 23
Joined: 2002.08
Post: #2
Check out OneSadCookie's Creating Mac Games document. What you want (if you're looking to do rendering inside a window, as opposed to full screen) is AGL. Check out the Carbon ports of NeHe's OpenGL Tutorials, as well.
Quote this message in a reply
Posts: 1,234
Joined: 2002.10
Post: #3
Apple has various sample code showing how to use OpenGL from Carbon. GLCarbonAGLWindow and aglClipBufferRect, for example.
Quote this message in a reply
Posts: 156
Joined: 2002.11
Post: #4
GLUT was kinda buggy until recently on OS X. I am not it's been fixed.

Check out the source code at

Time is running out!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Beginner Carbon & OpenGL help jo_shadow 4 5,385 Jan 10, 2008 09:31 AM
Last Post: TomorrowPlusX
  is sdl+opengl slower than cocoa/carbon+opengl? Najdorf 9 7,174 Nov 16, 2005 09:45 PM
Last Post: WhatMeWorry
  Carbon vs Cocoa OpenGl Byron Clarke 2 4,238 May 31, 2005 05:47 PM
Last Post: maaaaark
  loading a texture in opengl with carbon hyperutila 3 4,743 Nov 25, 2004 03:07 PM
Last Post: FCCovett
  Carbon Opengl issues David 4 5,139 Dec 26, 2002 01:56 AM
Last Post: David