20#ifndef vtkOpenGLES30PolyDataMapper2D_h
21#define vtkOpenGLES30PolyDataMapper2D_h
26#include "vtkRenderingOpenGL2Module.h"
29VTK_ABI_NAMESPACE_BEGIN
68 void BuildShaders(std::string& VertexCode, std::string& fragmentCode, std::string& geometryCode,
98 std::vector<unsigned int> PrimitiveIndexArrays[PrimitiveEnd];
a actor that draws 2D data
a simple class to control print indentation
Allocate and hold a VTK object.
2D PolyData support for OpenGL ES 3.0
void BuildShaders(std::string &VertexCode, std::string &fragmentCode, std::string &geometryCode, vtkViewport *ren, vtkActor2D *act) override
Build the shader source code.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReplaceShaderPointSize(std::string &VSSource, vtkViewport *ren, vtkActor2D *act)
In GLES 3.0, point size is set from the vertex shader.
void UpdateVBO(vtkActor2D *act, vtkViewport *viewport)
Update the scene when necessary.
void ReplaceShaderWideLines(std::string &VSSource, vtkViewport *ren, vtkActor2D *act)
GLES 3.0 does not support wide lines (width > 1).
void UpdateShaders(vtkOpenGLHelper &cellBO, vtkViewport *viewport, vtkActor2D *act) override
Determine what shader to use and compile/link it.
static vtkOpenGLES30PolyDataMapper2D * New()
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
Actually draw the poly data.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkViewport *viewport, vtkActor2D *act) override
Set the shader parameters related to the mapper/input data, called by UpdateShader.
~vtkOpenGLES30PolyDataMapper2D() override
vtkOpenGLES30PolyDataMapper2D()
2D PolyData support for OpenGL
abstract specification for Viewports
window superclass for vtkRenderWindow