You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

glstate.h 438B

1234567891011121314151617181920212223242526
  1. /*
  2. * Functions for dealing with OGL's PITA state management
  3. */
  4. #pragma once
  5. #include <memory>
  6. #include <GL/glew.h>
  7. #include <GL/gl.h>
  8. // forward declarations
  9. namespace vtk {
  10. class Shader;
  11. }
  12. namespace vtk::gls {
  13. // set active shader
  14. int setShader(const GLuint& shaderID);
  15. // enable tracking of state changes
  16. void setTracking(const bool& flag);
  17. void setFlag(const GLenum& flag, const bool& newState);
  18. void restoreState();
  19. }