CocoaGL Tutorials

Everyone needs a place to start! In this tutorial, you will learn how to set up a nib file and your project so that you can work with OpenGL using OS X, Cocoa and Objective C. (Please note: this tutorial does not do anything with the OpenGL panel, it just sets it up, so you should get a black filled window.)
 
Shapes and colors: in this tutorial, you will draw a triangle with different colors using different modes.
 
In this tutorial, you will draw and rotate a cube.
 
Textures, NSImageRep, NSBitmapImageRep and other things to do with your NIB. In this tutorial, you will create a pair of dice.
 
This tutorial is all about Lighting. You will also learn how to check and uncheck menu items.
 
Blending is combined with lighting in this tutorial.
 
Loading pictures from outside your NIB. In this tutorial, we also create a structure to hold stars. The stars move around the screen like in one of Nehe's tutorials.
 
Functionality from NSFont and CoreGraphics. We will also look very briefly at display lists and the glBitmap functions. This tutorial puts text on the screen above the pictures in the previous tutorial.
 
Oh dear, I wrote a Tutorial 8, but it was deleted and I'll have to rewrite it. In the meantime, you can download the code (particle engine madness!)
 
NSGLFont is further refined. A whole bunch of different fonts types are looked at here. We look at two different extruded fonts as well as comparing a bitmap font and a pixel-based font. They are all created and used with the NSGLFont class created in Tutorial Seven.
 

return to deep cocoa