ScopedVertexAttribPointer::ScopedVertexAttribPointer(GLContext* aGL, GLuint index) : ScopedGLWrapper<ScopedVertexAttribPointer>(aGL) , mAttribEnabled(0) , mAttribSize(0) , mAttribStride(0) , mAttribType(0) , mAttribNormalized(0) , mAttribBufferBinding(0) , mAttribPointer(nullptr) , mBoundBuffer(0) { WrapImpl(index); }
ScopedVertexAttribPointer::ScopedVertexAttribPointer(GLContext* aGL, GLuint index, GLint size, GLenum type, realGLboolean normalized, GLsizei stride, GLuint buffer, const GLvoid* pointer) : ScopedGLWrapper<ScopedVertexAttribPointer>(aGL) { WrapImpl(index); mGL->fBindBuffer(LOCAL_GL_ARRAY_BUFFER, buffer); mGL->fVertexAttribPointer(index, size, type, normalized, stride, pointer); mGL->fEnableVertexAttribArray(index); }
ScopedVertexAttribPointer::ScopedVertexAttribPointer(GLContext* aGL, GLuint index) : ScopedGLWrapper<ScopedVertexAttribPointer>(aGL) { WrapImpl(index); }