PDA

View Full Version : Setting Up a Tessillation Shader



GingerBread
03-16-2012, 06:37 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,

menzel
03-17-2012, 03:29 PM
From your output, the Utils.h is missing. Are you using some extension loader like glew? You have to include something that defines the GL_TESS_CONTROL_SHADER constant and loads the openGL functions at runtime.

GingerBread
03-19-2012, 12:17 PM
Thanks menzel. Actually, problem was that I didn't use the latest GLEW library.

Cheers,