Setting Up a Tessillation Shader

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


Thanks and Regards,

Then you will have to declare it yourself or update your header files.
If you are using glext.h, then get it from

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

Thanks a lot V-Man. It worked. I just updated the GLEW.