PDA

View Full Version : querying the video card



kerryh
03-24-2002, 06:45 PM
Is there a way to determine what extensions are available on the video card without creating a window?
The window is needed to create the context, and there must be a context before glGetString will work. Can I get around this?

thanks,
kerryh

rts
03-24-2002, 06:59 PM
NAME
glXQueryExtensionsString - return list of supported exten*sions

C SPECIFICATION
const char * glXQueryExtensionsString( Display *dpy, int screen )


More info available from man glXQueryExtensionsString.



[This message has been edited by rts (edited 03-24-2002).]

john
03-24-2002, 07:37 PM
Howdy,

btw, you don't need to create a window as soon as you make a context; you need to ~explicilty~ create a window. Also, your window will only appear when you dispatch the window creation event. (ie. there are a lot of hoops a window has to jump through before it'll make an appearance)

cheers,
John