I'm working on porting an OpenGL software package to the Mac (and maybe Linux in the future). The software currently runs on Windows, but it was written to support multiple platforms. There is a library that contains some OS abstraction classes, such as threads, shared memory, mutex, timer, keyboard input, mouse input...
My question is where to find a description of the BSD Api's that I should use in the abstraction layer?
Second question. Could someone give me an example (or point me in the right direction) on how to programically create a window. I know that Project Builder/Interface Builder allow for easy building of GUI's, but I would like to build a simple window with an OpenGL context without the use of a nib file.
Thank you