PDA

View Full Version : OpenGL and Drawing




tesseract36
Jan 12, 2009, 04:52 PM
I have a few questions, i someone could help me out or at least show me a good place to start.

1) Im tring to use OpenGL to draw an image (sprite) and have no idea how or were to find how. If this can be done please help otherwise let me know how I should be doing this.

2) I want to draw a little icon on the desktop, and i want it to be animated. basicly a swerly little icon to show my program is thinking in the background. Ill make the image and animate it but i dont know what to do form their. Im so confused with ruby openGL quartz and carbon C I have no idea what most of these are.



Cromulent
Jan 12, 2009, 06:03 PM
Get the OpenGL red book. It really is the bible for OpenGL. Be aware that a new edition may come out soon for OpenGL version 3 but the version the book I linked too describes the version of OpenGL that is Mac OS X Leopard.

http://www.amazon.co.uk/OpenGL-Programming-Guide-Official-Learning/dp/0321481003/ref=sr_1_1?ie=UTF8&s=books&qid=1231804909&sr=8-1

BravoBug
Jan 12, 2009, 06:21 PM
Im so confused with ruby openGL quartz and carbon C I have no idea what most of these are.

If you're just starting out learning some of these things, and you're writing a Cocoa app in Obj-C, you may want to stick with something simple like NSImage (drawInRect, drawAtPoint, etc.) for the time being. For many basic drawing tasks it's plenty fast.

If you really want to learn OpenGL you might want to take a look at the NeHe tutorials (http://nehe.gamedev.net/).

Cromulent
Jan 12, 2009, 06:24 PM
If you really want to learn OpenGL you might want to take a look at the NeHe tutorials (http://nehe.gamedev.net/).

I wouldn't if I was learning. I'd stick to (and in fact did) the red and orange books.