Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/ShaderProgram.h
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | public: | ||||
// Vertex attribute pointers (equivalent to glVertexPointer etc): | // Vertex attribute pointers (equivalent to glVertexPointer etc): | ||||
virtual void VertexPointer(GLint size, GLenum type, GLsizei stride, const void* pointer); | virtual void VertexPointer(GLint size, GLenum type, GLsizei stride, const void* pointer); | ||||
virtual void NormalPointer(GLenum type, GLsizei stride, const void* pointer); | virtual void NormalPointer(GLenum type, GLsizei stride, const void* pointer); | ||||
virtual void ColorPointer(GLint size, GLenum type, GLsizei stride, const void* pointer); | virtual void ColorPointer(GLint size, GLenum type, GLsizei stride, const void* pointer); | ||||
virtual void TexCoordPointer(GLenum texture, GLint size, GLenum type, GLsizei stride, const void* pointer); | virtual void TexCoordPointer(GLenum texture, GLint size, GLenum type, GLsizei stride, const void* pointer); | ||||
virtual void VertexAttribPointer(attrib_id_t id, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); | virtual void VertexAttribPointer(attrib_id_t id, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); | ||||
virtual void VertexAttribIPointer(attrib_id_t id, GLint size, GLenum type, GLsizei stride, const void* pointer); | virtual void VertexAttribIPointer(attrib_id_t id, GLint size, GLenum type, GLsizei stride, const void* pointer); | ||||
virtual void VertexAttribDivisor(attrib_id_t id, GLuint divisor); | |||||
/** | /** | ||||
* Checks that all the required vertex attributes have been set. | * Checks that all the required vertex attributes have been set. | ||||
* Call this before calling glDrawArrays/glDrawElements etc to avoid potential crashes. | * Call this before calling glDrawArrays/glDrawElements etc to avoid potential crashes. | ||||
*/ | */ | ||||
void AssertPointersBound(); | void AssertPointersBound(); | ||||
virtual std::vector<VfsPath> GetFileDependencies() const = 0; | virtual std::vector<VfsPath> GetFileDependencies() const = 0; | ||||
Show All 13 Lines |
Wildfire Games · Phabricator