Re: NSOpenGLView. How does it work?
Re: NSOpenGLView. How does it work?
- Subject: Re: NSOpenGLView. How does it work?
- From: Lorenzo <email@hidden>
- Date: Tue, 01 Jul 2003 14:23:58 +0200
Hi Brent,
thank you for your reply.
Yes, I would like to know more about OpenGL. I already know about NSView,
NSResponder and a bunch of stuffs more in Cocoa, but I don't know OpenGL nor
NSOpenGL at all. So, where could I find a good documentation/book/PDF
describing the "abc" of OpenGL? Open a great project doesn't help. I need to
start from the base and understand the principles.
Currently, starting from your suggestion www.withay.com I found
www.opengl.org and I am reading the first document "Introduction to GLUT".
Good start! Thank you. If you know more please let me know.
Thank you.
Best Regards
--
Lorenzo
email: email@hidden
>
From: Brent Gulanowski <email@hidden>
>
Date: Mon, 30 Jun 2003 15:13:03 -0400
>
To: Lorenzo <email@hidden>
>
Cc: email@hidden
>
Subject: Re: NSOpenGLView. How does it work?
>
>
First off, I recommend if you are interested in OpenGL, that you post
>
OpenGL-related questions (even if they concern specifics of the NS*GL
>
classes) to apple's OpenGL mailing list.
>
>
On Monday, June 30, 2003, at 01:50 PM, Lorenzo wrote:
>
>
> Hi,
>
> I have just downloaded from the Apple Web Site and run a very cool
>
> sample
>
> ("OpenGL Image") about OpenGL. I can choose a large Image then I can
>
> see it
>
> in a window and I can pan it, rotate it, infinite zoom it at the
>
> light-speed! It seems to work on a graphic workstation. Cool!
>
>
There are countless other samples available as well. Note that they
>
usually tell you if they are Carbon or Cocoa. There's a new one by
>
Geoff Stahl called "Custom Cocoa OpenGL" which includes demos of
>
NSString->NSImage->texture text display and trackball-style mouse input.
>
>
>
> Then I tried to compile the PB project but some files are missed
>
> (within the
>
> whole folder "Carbon SetupGL"), so I cannot compile nor learn more.
>
> And this
>
> sample is in Carbon. I would like to do the same in Cocoa.
>
>
Again, lots of samples at Apple, and also check out www.withay.com
>
under the NeHe OpenGL ports.
>
>
>
> Since I am totally new at OpenGL and NSOpenGLView I tried even to
>
> learn more
>
> about NSOpenGLView but I didn't find anything useful for me. I found
>
> only
>
> some short description about the single APIs. But I am not able to
>
> understand how they work together. Thus I am not able to reproduce
>
> that cool
>
> sample by myself in Cocoa.
>
>
>
> Is anyone can help me? Thank you.
>
>
The documentation is a bit clipped, but the essentials are (mostly)
>
there. Prerequisites to using the NS*GL classes are:
>
-knowledge of NSView and NSResponder classes and concepts in Cocoa
>
-knowledge of OpenGL drawing, state and context management
>
>
So, look into the prerequisites before charging into a specific
>
implementation.
>
>
Brent Gulanowski
>
--
>
Mac game development news and discussion
>
http://www.idevgames.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.