how can I write opgl program on SGI server ?

I know how to write program on windows,but I have to have it run on Irix of SGI server,so please tell me how to write opgl using pure c.I am a beginner^_^

Is there any SGI server documentation on the net ?