Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_PROGRAM_H
17 #define SURGSIM_GRAPHICS_PROGRAM_H
133 #endif // SURGSIM_GRAPHICS_PROGRAM_H
virtual bool loadFragmentShader(const std::string &filePath)=0
Loads the fragment shader source code from a file.
virtual void clearFragmentShader()=0
virtual void setFragmentShaderSource(const std::string &source)=0
Set the fragment shader source code.
virtual bool loadVertexShader(const std::string &filePath)=0
Loads the vertex shader source code from a file.
virtual bool getFragmentShaderSource(std::string *source) const =0
Gets the fragment shader source code.
virtual void setGlobalScope(bool val)=0
When this is set to true, this shader should be used instead of other shaders that might apply,...
Definition: CompoundShapeToGraphics.cpp:29
virtual bool hasGeometryShader() const =0
Base class that defines the interface for graphics programs.
Definition: Program.h:39
virtual bool hasFragmentShader() const =0
virtual void setVertexShaderSource(const std::string &source)=0
Set the vertex shader source code.
virtual bool loadGeometryShader(const std::string &filePath)=0
Loads the geometry shader source code from a file.
virtual void clearGeometryShader()=0
Removes the geometry shader, returning that portion of the shader program to fixed-function.
virtual bool hasVertexShader() const =0
virtual bool getVertexShaderSource(std::string *source) const =0
Gets the vertex shader source code.
virtual ~Program()=0
Destructor.
Definition: Program.h:125
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
virtual bool isGlobalScope() const =0
Query if this shader is of global scope.
virtual void setGeometryShaderSource(const std::string &source)=0
Set the geometry shader source code.
virtual void clear()
Clears the entire shader, returning to fixed-function pipeline.
Definition: Program.h:105
virtual bool getGeometryShaderSource(std::string *source) const =0
Gets the geometry shader source code.
virtual void clearVertexShader()=0
Removes the vertex shader, returning that portion of the shader program to fixed-function.