16#ifndef vtkOpenGLRenderUtilities_h
17#define vtkOpenGLRenderUtilities_h
20#include "vtkRenderingOpenGL2Module.h"
25VTK_ABI_NAMESPACE_BEGIN
65 vtkTextureObject* colorTexture,
int dstXmin,
int dstYmin,
int width,
int height);
a simple class to control print indentation
Internal class which encapsulates OpenGL FramebufferObject.
static bool PrepFullScreenVAO(vtkOpenGLRenderWindow *renWin, vtkOpenGLVertexArrayObject *vao, vtkShaderProgram *prog)
Draw a full-screen quad:
static std::string GetFullScreenQuadVertexShader()
Draw a full-screen quad:
vtkOpenGLRenderUtilities()
static std::string GetFullScreenQuadFragmentShaderTemplate()
Draw a full-screen quad:
static bool CompositeColorTexture(vtkOpenGLState *state, const vtkRenderState *renderState, vtkOpenGLRenderWindow *renderWindow, vtkOpenGLFramebufferObject *readFramebuffer, vtkTextureObject *colorTexture, int dstXmin, int dstYmin, int width, int height)
Composite a render pass result into the current draw framebuffer: blit it out of readFramebuffer when...
static std::string GetFullScreenQuadGeometryShader()
Draw a full-screen quad:
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkOpenGLRenderUtilities() override
static void RenderTriangles(float *verts, unsigned int numVerts, GLuint *iboData, unsigned int numIndices, float *tcoords, vtkShaderProgram *program, vtkOpenGLVertexArrayObject *vao)
Helper function that draws a quad on the screen at the specified vertex coordinates and if tcoords ar...
static void RenderQuad(float *verts, float *tcoords, vtkShaderProgram *program, vtkOpenGLVertexArrayObject *vao)
Helper function that draws a quad on the screen at the specified vertex coordinates and if tcoords ar...
static bool PrepFullScreenVAO(vtkOpenGLBufferObject *vertBuf, vtkOpenGLVertexArrayObject *vao, vtkShaderProgram *prog)
static void MarkDebugEvent(const std::string &event)
Pass a debugging mark to the render engine to assist development via tools like apitrace.
static void DrawFullScreenQuad()
Draw a full-screen quad:
The VertexArrayObject class uses, or emulates, vertex array objects.
Context in which a vtkRenderPass will render.
The ShaderProgram uses one or more Shader objects.
abstracts an OpenGL texture object.