Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • feature/glm-update
2 results

ElementArrayBufferControl.hh

Blame
    • Andreas Neu's avatar
      1bc851f7
      Usage of static GL Contexts in basic OpenGL Objects incorporated. · 1bc851f7
      Andreas Neu authored
      Until now only the class Texture used it. Now it has been added to ElementArrayBuffer, ArrayBuffer, FrameBuffer and ShaderProgram.
      Static class members have to be initialized outside the header, so the file ElementArrayBuffer.cc had to be added.
      Unbind calls e.g. glBindBuffer(GL_ARRAY_BUFFER, 0) outside of the specific class are not useful anymore, because it
      would not reset the static context variable and thus lead to bugs/crashes.
      1bc851f7
      History
      Usage of static GL Contexts in basic OpenGL Objects incorporated.
      Andreas Neu authored
      Until now only the class Texture used it. Now it has been added to ElementArrayBuffer, ArrayBuffer, FrameBuffer and ShaderProgram.
      Static class members have to be initialized outside the header, so the file ElementArrayBuffer.cc had to be added.
      Unbind calls e.g. glBindBuffer(GL_ARRAY_BUFFER, 0) outside of the specific class are not useful anymore, because it
      would not reset the static context variable and thus lead to bugs/crashes.