PDA

View Full Version : Novice to OpenGL !



04-05-2002, 05:38 AM
Hi ,

I am a newbie to OpenGL. I have a windows 95 machine with me. I am connecting
to SGI-IRIX through an X-server , MIX .. Theres an already developed application
using OpenGL running on SGI. I am trying to run the same application through MIX
and it gives me following error -

>>Xlib: extension "GLX" missing on display "ip add of my win95"
>>Error : Could not find a visual that OpenGL likes.

/* XVisualInfo *vi; -- This is made global */
int dbuf[] = {GLX_RGBA,
GLX_RED_SIZE, 1,
GLX_GREEN_SIZE, 1,
GLX_BLUE_SIZE, 1,
GLX_DOUBLEBUFFER,
None };

/* Look for a visual that OpenGL is happy with.. */
dpy = GDK_DISPLAY(); /* This will give us the current display */

vi = glXChooseVisual(dpy, DefaultScreen(dpy), dbuf);

This is the actual code related to OpenGL initialization. Now , exactly what code to
write and how to provide windows extension to this program , so that it works on
SGI as well as on Windows95 machine smoothly ?

Could you please help me out ?

Thank you very much.

yakuza
04-05-2002, 06:37 AM
From the MI/X FAQ:
http://www.microimages.com/mix/mix-faq.htm#faq1_6



Q: Does MI/X support openGL?
A: No.


[This message has been edited by yakuza (edited 04-05-2002).]