Carbon and OpenGL
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?
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.
Apple has various sample code showing how to use OpenGL from Carbon. GLCarbonAGLWindow and aglClipBufferRect, for example.
GLUT was kinda buggy until recently on OS X. I am not it's been fixed.
Check out the source code at http://webpages.charter.net/utopiaplanet...Struct.dmg
Check out the source code at http://webpages.charter.net/utopiaplanet...Struct.dmg
Time is running out!
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Beginner Carbon & OpenGL help | jo_shadow | 4 | 3,196 |
Jan 10, 2008 09:31 AM Last Post: TomorrowPlusX |
|
| is sdl+opengl slower than cocoa/carbon+opengl? | Najdorf | 9 | 4,446 |
Nov 16, 2005 09:45 PM Last Post: WhatMeWorry |
|
| Carbon vs Cocoa OpenGl | Byron Clarke | 2 | 2,582 |
May 31, 2005 05:47 PM Last Post: maaaaark |
|
| loading a texture in opengl with carbon | hyperutila | 3 | 2,934 |
Nov 25, 2004 03:07 PM Last Post: FCCovett |
|
| Carbon Opengl issues | David | 4 | 3,362 |
Dec 26, 2002 01:56 AM Last Post: David |
|

