Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > OpenGL, OS X PB, & Interface/Proj. Builder

OpenGL, OS X PB, & Interface/Proj. Builder
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2001
Status: Offline
Reply With Quote
Jan 18, 2001, 09:32 PM
 
I would like to create an OpenGL 2D game basically along the lines of "BlastApp" (included w/ OSXPB) where I can manage the GUI through Cocoa (specifically, Java for the high scores, player name, etc.) but instead of having the game's code entirely in Java, I'd like to use OpenGL for the game itself. How can I do this? I know how to use GLUT to draw to a NEW window in OSXPB, but how can I just draw to one "Custom View" of my Cocoa app? I have NO experience w/ Obj-C, BTW. I know that a class exists, NSOpenGLView, that may(?) do what I want but there is no Java documentation for it, only Obj-C! HELP! :-)
     
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status: Offline
Reply With Quote
Jan 24, 2001, 08:44 AM
 
Why do you want to use Open GL to do 2D stuff? Isn't it more meant for 3D? If I were you I'd subclass NSView and use that to so what you need instead of using Open GL. Take a look at the NSView documentation; it's pretty good.
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 25, 2001, 08:30 AM
 
Learn Obj-C :-)

Don't use GLUT for 2-D things.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2