On Wed, Jan 22, 2003 at 06:11:09PM -0700, Brian Paul wrote:
> Gregor Riepl wrote:
> >For all those who don't know yet:
> >ATI has released a closed source driver which should support most ATI 
> >based video cards. You can grab it on www.ati.com. (It's an rpm though)
> >
> >This is quite nice, since the open source drivers support almost no 
> >advanced features of the newer cards.
> >Now the problem is, I just started with OpenGL programming and wanted to 
> >try out those cool features recent 3d chips offer: vertex & pixel shaders, 
> >ATI Truform, etc.
> >But for some reason _none_ of these functions, not even the simplest 
> >OpenGL 1.3/1.4 extensions (let alone ATI stuff) seem to be implemented in 
> >their GL library/header files.
> 
> You should be able to use the Mesa/DRI/XFree86 gl.h and glext.h headers. 
> glext.h has most of the newest extensions.
> 

I recommend using some library which has up-to-date header file and code to
automatically set up all supported extensions..

http://glew.sf.net is one of these. It supports most of ARB-, EXT-, ATI- and
NVIDIA-extensions under both Linux and Windows.

Example code:

        #include "glew.h"

        glewInit();

        if (glew.ARB_fragment_program)
        {
                // use pixel shaders here
        }

        if (glew.ARB_texture_env_combine)
        {
                // use texture env combiners here
        }


and so on..


-- Pasi Kärkkäinen
       
                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to