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.

shader.h 403B

123456789101112131415161718192021222324252627
  1. /*
  2. * Loads and manages a shader
  3. */
  4. #pragma once
  5. #include <string>
  6. namespace vtk {
  7. class Shader {
  8. public:
  9. bool activate(); //Must be called to use shader
  10. //Load shader, type 0 = Vert, 1 = Frag, 2 = Geometry
  11. bool loadShaderFiles(const std::string& vertShader,
  12. const std::string& fragShader,
  13. const std::string& geomShader = "");
  14. protected:
  15. };
  16. }