PDA

View Full Version : ATI RADEON fragment shaders



Jens Krüger
11-27-2001, 12:15 AM
Hi NG!

Has anybody of you ever writen an aaplication using the GL_ATI_fragment_shader extension?

I'm asking because I can not make my VC++ compiler compile the program. I always get a

[..] Error C2065: 'glGenFragmentShadersATI' : undeclared identifier [..]

error. I am including the glATI.h and wglATI.h header Files. This inclusion seems to work since calls like "glGetIntegerv(GL_NUM_FRAGMENT_REGISTERS_ATI,&num_frag_reg); " work fine.

I am using a RADEON 8500 on windows XP and VC++ 6 SP5. Driver R200 Version = 6.13.10.3291.

Can anyone help me?

- Jens

Lev
11-27-2001, 01:51 AM
You have to use wglGetProcAddress for new functions. Take a look at this article: http://www.opengl.org/developers/code/features/OGLextensions/OGLextensions.html

-Lev

Jens Krüger
11-27-2001, 08:24 AM
Cool, that worked for me, thanks ...