23 #ifndef vtkOpenGLProperty_h
24 #define vtkOpenGLProperty_h
26 #include "vtkRenderingOpenGLModule.h"
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,
129 bool using_shader_program2);
134 void LoadMultiTexturingExtensions(
vtkRenderer* ren);
vtkShaderProgram2 * LastPropProgram
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...
vtkGLSLShaderDeviceAdapter2 * ShaderDeviceAdapter2
vtkShader2 * DefaultPropFS
vtkShader2 * DefaultMainVS
represent surface properties of a geometric object
virtual void AddShaderVariable(const char *name, int numVars, int *x)
Provide values to initialize shader variables.
vtkShader2 * DefaultPropVS
abstract specification for renderers
window superclass for vtkRenderWindow
a list of Shader2 objects.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkShaderProgram2 * PropProgram
a simple class to control print indentation
vtkShader2 * DefaultMainFS
vtkShaderProgram2 * CachedShaderProgram2
virtual vtkShaderDeviceAdapter2 * GetShaderDeviceAdapter2()
Get the vtkShaderDeviceAdapter2 if set, returns null otherwise.
vtkShaderProgram2 * LastRendererShaderProgram2
virtual void PostRender(vtkActor *, vtkRenderer *)
This method is called after the actor has been rendered.
vtkShaderProgram2 * CurrentShaderProgram2
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.