[shader] bind() is now a pure virtual

- Shader::bind() now receives a GLbyte*
- BUFFER_OFFSET now uses GLbyte
This commit is contained in:
Bruno de Oliveira Abinader
2015-09-10 14:46:38 +03:00
parent 8d6b9696bf
commit 2156aa35ca
36 changed files with 65 additions and 62 deletions

View File

@@ -69,7 +69,7 @@ void VertexArrayObject::bindVertexArrayObject() {
}
void VertexArrayObject::verifyBinding(Shader &shader, GLuint vertexBuffer, GLuint elementsBuffer,
char *offset) {
GLbyte *offset) {
if (bound_shader != shader.getID()) {
throw std::runtime_error(std::string("trying to rebind VAO to another shader from " +
util::toString(bound_shader) + "(" + bound_shader_name + ") to " +
@@ -84,7 +84,7 @@ void VertexArrayObject::verifyBinding(Shader &shader, GLuint vertexBuffer, GLuin
}
void VertexArrayObject::storeBinding(Shader &shader, GLuint vertexBuffer, GLuint elementsBuffer,
char *offset) {
GLbyte *offset) {
bound_shader = shader.getID();
bound_shader_name = shader.name;
bound_offset = offset;