PDA

View Full Version : extensions, multiple contexts and GLEW



shelll
12-30-2005, 03:14 AM
hi, i must use extensions in multiple contexts, so i tried GLEW as it supports multiple contexts, but i don't know how to use it.

i defined GLEW_MX, included glew.h. i defined GLEWContext, bu it is only struct and not object as mentionoed on GLEWs web page, and don't know what they mean by creating it, i just declared it. and here is my problem, the GLEWContext is member variable of a class, i also defined member function glewGetContext(), which returns pointer to struct. bu when i use non-standard gl functions, the program won't compile saying, that 'glewGetContext': identifier not found... :( (

what should i do? i did not find any examples of such use of GLEW.

thanks a lot.

shelll
01-01-2006, 07:37 AM
nobody? :( i really need it, please help me someone...

SirKnight
01-01-2006, 02:15 PM
I'm guessing you havn't seen this page? http://glew.sourceforge.net/basic.html

From what I remember when using glew it was fairly easy to setup and use.

-SirKnight

shelll
01-02-2006, 01:22 AM
i have seen that page, but i need the advanced usage... which i have problems with...

rgpc
01-02-2006, 01:37 AM
Advanced usage would be on this page...

http://glew.sourceforge.net/advanced.html

shelll
01-02-2006, 03:22 AM
i know where advanced usage is. i am just unable to make it work in my case. please read my first post again.

shelll
01-03-2006, 11:23 PM
i did it