46 #include "vtkRenderingOpenGLModule.h"
81 vtkSetStringMacro(SourceCode);
93 vtkGetMacro(Type,
int);
155 vtkGetMacro(Id,
unsigned int);
202 void operator=(
const vtkShader2&) VTK_DELETE_FUNCTION;
a simple class to control print indentation
abstract base class for most VTK objects
create a window for renderers to draw into
size_t LastCompileLogCapacity
vtkTimeStamp LastCompileTime
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static bool IsSupported(vtkRenderWindow *context)
Returns if the context supports the required extensions.
virtual ~vtkShader2()
Destructor.
bool GetLastCompileStatus()
Tells if the last call to compile succeeded (true) or not (false).
bool LoadRequiredExtensions(vtkRenderWindow *context)
Load the required OpenGL extensions.
virtual void SetUniformVariables(vtkUniformVariables *variables)
vtkUniformVariables * UniformVariables
void SetContext(vtkRenderWindow *context)
Get/Set the context.
bool SupportGeometryShader
vtkWeakPointer< vtkRenderWindow > Context
const char * GetLastCompileLog()
Return the log of the last call to compile as a string.
vtkRenderWindow * GetContext()
vtkShader2()
Default constructor.
static vtkShader2 * New()
virtual void ReleaseGraphicsResources()
Release OpenGL resource (shader id).
const char * GetTypeAsString()
Return the shader type as a string.
void Compile()
Compile the shader code.
record modification and/or execution time
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
@ VTK_SHADER_TYPE_FRAGMENT
@ VTK_SHADER_TYPE_TESSELLATION_CONTROL
@ VTK_SHADER_TYPE_GEOMETRY
@ VTK_SHADER_TYPE_TESSELLATION_EVALUATION