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 > NSOpenGLView

NSOpenGLView
Thread Tools
Addicted to MacNN
Join Date: Apr 2000
Status: Offline
Reply With Quote
Apr 29, 2001, 05:35 PM
 
i finially figured out how to initialize a frame using NSOpenGLView. and get input from the mouse. the quetion arises when i want to create 2 NSOpenGLViews in the same window. i do the eact same things for it, as far as initializing, and i make sure everything pretaining to that frame actually has the identifyers of that frame, but it seems like the output is always the same.
-the first frame works flawlessely
-the second one is always black.(except if i initialize the color to be different)
in short....HELP !!!!
     
Fresh-Faced Recruit
Join Date: Apr 2001
Location: Murray, Utah, USA
Status: Offline
Reply With Quote
Apr 30, 2001, 10:40 AM
 
Sorry to post another related question instead of an answer, but I've been trying to get NSOpenGLView to work myself. I can't find documentation anywhere on how to use it. I'm sure it is simple enough.... could someone throw me a bone?

Jeff
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Apr 30, 2001, 11:24 AM
 
It's fairly easy.

Just subclass one, name it, and override the method - (void)drawRectNSRect)rect

and just stick some OpenGL Code in.

Edit: (Fixed frown).
------------------


http://gilgalad.dyndns.org/

[This message has been edited by parallax (edited 04-30-2001).]
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Addicted to MacNN
Join Date: Apr 2000
Status: Offline
Reply With Quote
Apr 30, 2001, 07:22 PM
 
here's a link to the ADC sampl code page for Graphic 3D stuff. ull have to analyze the code to see the function calls, etc. i recommend NSGL TeaPot. it looks preety straight forward and looks very close to OpenGL. http://developer.apple.com/samplecod...raphics_3D.htm
     
   
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 09:38 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