PDA

View Full Version : Setting Up a Tessillation Shader



GingerBread
03-16-2012, 07:28 AM
Hey all,
I am trying to make a tessilation shader from scratch. It shows "GL_TESS_CONTROL_SHADER was not declared in this scope" and "GL_TESS_CONTROL_SHADER was not declared in this scope". Please let me know where I am wrong.

Link to Code
Triangle: http://codepad.org/ib3dL9Ni

Main: http://codepad.org/cT2wlaS2

Thanks and Regards,

V-man
03-16-2012, 09:00 AM
Then you will have to declare it yourself or update your header files.
If you are using glext.h, then get it from
https://www.opengl.org/registry/

If you are using some loader like GLEW, then download the latest version from their website.

GingerBread
03-16-2012, 10:53 AM
Thanks a lot V-Man. It worked. I just updated the GLEW.

Regards,