MCPcopy Create free account
hub / github.com/arrayfire/forge / ShaderProgram

Class ShaderProgram

src/backend/opengl/common.hpp:163–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161typedef unsigned char uchar;
162
163class ShaderProgram {
164 private:
165 gl::GLuint mVertex;
166 gl::GLuint mFragment;
167 gl::GLuint mGeometry;
168 gl::GLuint mProgram;
169
170 public:
171 ShaderProgram(const char* pVertShaderSrc,
172 const char* pFragShaderSrc,
173 const char* pGeomShaderSrc=NULL);
174
175 ~ShaderProgram();
176
177 gl::GLuint getProgramId() const;
178
179 gl::GLuint getUniformLocation(const char* pAttributeName);
180 gl::GLuint getUniformBlockIndex(const char* pAttributeName);
181 gl::GLuint getAttributeLocation(const char* pAttributeName);
182
183 void bind();
184 void unbind();
185};
186
187/* Basic renderable class
188 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected