http://sjbaker.org/steve/omniv/matri...r_friends.htmlShould get you started. You can read up on OpenGL matrices in OpenGL specification.