28 #ifndef __PX_VP20_GLSL_PROGRAM_H__
29 #define __PX_VP20_GLSL_PROGRAM_H__
32 #include "px_vp20/api.h"
33 #include "pxr/imaging/garch/gl.h"
38 PXR_NAMESPACE_OPEN_SCOPE
52 virtual ~PxrMayaGLSLProgram();
56 bool CompileShader(
const GLenum type,
const std::string& source);
76 PXR_NAMESPACE_CLOSE_SCOPE
79 #endif // __PX_VP20_GLSL_PROGRAM_H__
PX_VP20_API bool CompileShader(const GLenum type, const std::string &source)
Compile a shader of type type with the given source.
PX_VP20_API bool Validate() const
Validate whether this program is valid in the current context.
GLuint GetProgramId() const
Get the ID of the OpenGL program object.
A convenience class that abstracts away the OpenGL API details of compiling and linking GLSL shaders ...
PX_VP20_API bool Link()
Link the compiled shaders together.