Carbon and OpenGL

jonbryan
Unregistered
 
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
Member
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
Sage
Posts: 1,232
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
Member
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 http://webpages.charter.net/utopiaplanet...Struct.dmg

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 3,609 Jan 10, 2008 09:31 AM
Last Post: TomorrowPlusX
  is sdl+opengl slower than cocoa/carbon+opengl? Najdorf 9 4,845 Nov 16, 2005 09:45 PM
Last Post: WhatMeWorry
  Carbon vs Cocoa OpenGl Byron Clarke 2 2,858 May 31, 2005 05:47 PM
Last Post: maaaaark
  loading a texture in opengl with carbon hyperutila 3 3,248 Nov 25, 2004 03:07 PM
Last Post: FCCovett
  Carbon Opengl issues David 4 3,730 Dec 26, 2002 01:56 AM
Last Post: David