Re: [osg-users] Fwd: OpenGL EXTENSION support

2009-03-19 Thread Robert Osfield
Hi Sajjad,

I don't have to time to teach you everything you need to know to do your
job, you'll need to go look at online docs on OpenGL, and looks through the
OSG examples and online docs, and review the OSG archives.

Robert.

2009/3/19 ami guru 

> Hello Robert,
>
>
> Thanks for the hint.
>
> But i did not understand the idea of "Current OpenGL context"
>
> And the class that you specified requires a context id to instantiate
> GL2Extensions object.
>
> Any more reference into that matter would be of great help
>
>
>
> Regards
> Sajjad
>
> -- Forwarded message --
> From: Robert Osfield 
> Date: 2009/3/19
> Subject: Re: [osg-users] OpenGL EXTENSION support
> To: OpenSceneGraph Users 
>
>
> HI Sajjad,
>
> 2009/3/18 ami guru 
>
>> Is there any class or interface in OSG that can query and print out the
>> supported extensions within the OpenGL driver ?
>>
>
> There isn't a single method that returns a list of all supported
> extensions, but there are various methods for getting OpenGL function
> pointers and checking whether a specific extension is supported.  See
> include/osg/GLExtensions.
>
> Please note you'll need to have a valid graphics context, and for the
> extensions to be initialised before the functions will work as you can only
> do OpenGL calls from a thread with a valid graphics context.
>
> If you have happy do debug work on your app, then enable the verbose debug
> messages and this will output the lists of supported extensions for you.
> set the env var OSG_NOTIFY_LEVEL to DEBUG.
>
> Robert.
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Fwd: OpenGL EXTENSION support

2009-03-19 Thread ami guru
Hello Robert,


Thanks for the hint.

But i did not understand the idea of "Current OpenGL context"

And the class that you specified requires a context id to instantiate
GL2Extensions object.

Any more reference into that matter would be of great help



Regards
Sajjad

-- Forwarded message --
From: Robert Osfield 
Date: 2009/3/19
Subject: Re: [osg-users] OpenGL EXTENSION support
To: OpenSceneGraph Users 


HI Sajjad,

2009/3/18 ami guru 

> Is there any class or interface in OSG that can query and print out the
> supported extensions within the OpenGL driver ?
>

There isn't a single method that returns a list of all supported extensions,
but there are various methods for getting OpenGL function pointers and
checking whether a specific extension is supported.  See
include/osg/GLExtensions.

Please note you'll need to have a valid graphics context, and for the
extensions to be initialised before the functions will work as you can only
do OpenGL calls from a thread with a valid graphics context.

If you have happy do debug work on your app, then enable the verbose debug
messages and this will output the lists of supported extensions for you.
set the env var OSG_NOTIFY_LEVEL to DEBUG.

Robert.



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org