Linking and usage of shaders in OpenGL

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
Aristarh
Posts: 11
Joined: Wed Jul 14, 2010 3:47 pm
Location: Penza

Linking and usage of shaders in OpenGL

Post by Aristarh »

With "Opengl Shading Language 3rd Edition" and Visual Studio 2010, i started learning about shaders, write a simple vertex/fragment shader program and after reading same chapter in "orange book" start writing a simple program which loads both shaders programs from file.
Before that I using only freeglut library for tutors from "redbook"-"OpenGL Programming Guide 7th Edition", as recommended there, so i include only "glut.h" from freeglut.
You will ROFL a lot about me but...

glCreateProgram,glAttachShader,glLinkProgram e.g all functions about compiling shaders program are undefined.
I tryed include build- in studio <gl\glu.h>,<gl\gl.h>, every header in freeglut inc folder such a "freeglut.h","freeglut_ext" but all in vain.

I understand what this question got nomination in "The Most Stupid Newbie Question about GLSL"
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

include the irrlicht OpenGL extension handler. (or something similiar).
in wich you can find correct headers files. I did the same for obtain the control over gl shaders.. also remember to give a thanks to the irrlicht engine ;-)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Aristarh
Posts: 11
Joined: Wed Jul 14, 2010 3:47 pm
Location: Penza

Thank you, Red Demon!

Post by Aristarh »

The OpenGL Extension Wrangler Library aka GLEW i forgot about this one! Thank you!
Post Reply