23 #ifndef vtkOpenGLProperty_h 24 #define vtkOpenGLProperty_h 26 #include "vtkRenderingOpenGLModule.h" 99 void AddShaderVariable(const
char *
name,
int numVars,
int *x) VTK_OVERRIDE;
100 void AddShaderVariable(const
char *name,
int numVars,
float *x) VTK_OVERRIDE;
101 void AddShaderVariable(const
char *name,
int numVars,
double *x) VTK_OVERRIDE;
107 static
void SetMaterialProperties(
unsigned int face,
108 double ambient, const
double ambient_color[3],
109 double diffuse, const
double diffuse_color[3],
110 double specular, const
double specular_color[3],
double specular_power,
115 ~vtkOpenGLProperty() VTK_OVERRIDE;
129 bool using_shader_program2);
134 void LoadMultiTexturingExtensions(
vtkRenderer* ren);
138 vtkShaderProgram2 *CachedShaderProgram2;
140 vtkShaderProgram2 *LastRendererShaderProgram2;
141 vtkShaderProgram2 *LastPropProgram;
142 vtkShaderProgram2 *PropProgram;
146 vtkShaderProgram2 *CurrentShaderProgram2;
152 bool UseDefaultMainVS;
153 bool UseDefaultMainFS;
154 bool UseDefaultPropVS;
155 bool UseDefaultPropFS;
159 vtkOpenGLProperty(const vtkOpenGLProperty&) VTK_DELETE_FUNCTION;
160 void operator=(const vtkOpenGLProperty&) VTK_DELETE_FUNCTION;
virtual void Render(vtkActor *, vtkRenderer *)
This method causes the property to set up whatever is required for its instance variables.
represents an object (geometry & properties) in a rendered scene
static vtkProperty * New()
Construct object with object color, ambient color, diffuse color, specular color, and edge color whit...
represent surface properties of a geometric object
abstract specification for renderers
window superclass for vtkRenderWindow
an ordered list of Shader2 objects.
a simple class to control print indentation
virtual vtkShaderDeviceAdapter2 * GetShaderDeviceAdapter2()
Get the vtkShaderDeviceAdapter2 if set, returns null otherwise.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void PostRender(vtkActor *, vtkRenderer *)
This method is called after the actor has been rendered.
virtual void BackfaceRender(vtkActor *, vtkRenderer *)
This method renders the property as a backface property.
adapter to pass generic vertex attributes to the rendering pipeline to be used in a vtkShaderProgram2...
virtual void ReleaseGraphicsResources(vtkWindow *win)
Release any graphics resources that are being consumed by this property.
an adapter to pass generic vertex attributes to the rendering pipeline.