Vuo  2.1.0
Classes | Functions | Variables
VuoImageRenderer.cc File Reference

Description

VuoImageRenderer implementation.

Definition in file VuoImageRenderer.cc.

Go to the source code of this file.

Classes

struct  VuoImageRendererInternal
 Internal state data for a VuoImageRenderer instance. More...
 

Macros

#define glGenVertexArrays   glGenVertexArraysAPPLE
 Stub. More...
 
#define glBindVertexArray   glBindVertexArrayAPPLE
 Stub. More...
 
#define glDeleteVertexArrays   glDeleteVertexArraysAPPLE
 Stub. More...
 

Functions

static void VuoImageRenderer_fini (void)
 Destroys and deallocates the image renderer. More...
 
static void VuoImageRenderer_init (void)
 Initializes global state for rendering a VuoImage. More...
 
VuoImage VuoImageRenderer_draw (void *ir, VuoShader shader, unsigned int pixelsWide, unsigned int pixelsHigh, VuoImageColorDepth imageColorDepth)
 Deprecated. More...
 
void * VuoImageRenderer_make (void *)
 Deprecated. More...
 
VuoImage VuoImageRenderer_render (VuoShader shader, unsigned int pixelsWide, unsigned int pixelsHigh, VuoImageColorDepth imageColorDepth)
 Produces a new VuoImage by rendering shader. More...
 

Variables

static VuoImageRendererInternal VuoImageRendererGlobal
 Internal state data for a VuoImageRenderer instance. More...
 
static const GLfloat quadData []
 Positions and texture coordinates for a quad. More...
 
static const GLfloat unityMatrix [16]
 An identity matrix. More...
 

Class Documentation

◆ VuoImageRendererInternal

struct VuoImageRendererInternal
Class Members
GLuint outputFramebuffer
GLuint quadDataBuffer
GLuint vertexArray

Macro Definition Documentation

◆ glBindVertexArray

#define glBindVertexArray   glBindVertexArrayAPPLE

Stub.

Definition at line 18 of file VuoImageRenderer.cc.

◆ glDeleteVertexArrays

#define glDeleteVertexArrays   glDeleteVertexArraysAPPLE

Stub.

Definition at line 19 of file VuoImageRenderer.cc.

◆ glGenVertexArrays

#define glGenVertexArrays   glGenVertexArraysAPPLE

Stub.

Definition at line 17 of file VuoImageRenderer.cc.

Function Documentation

◆ VuoImageRenderer_draw()

VuoImage VuoImageRenderer_draw ( void *  ir,
VuoShader  shader,
unsigned int  pixelsWide,
unsigned int  pixelsHigh,
VuoImageColorDepth  imageColorDepth 
)

Deprecated.

This shim exists to enable old 3rd-party nodes to continue working.

Definition at line 113 of file VuoImageRenderer.cc.

◆ VuoImageRenderer_fini()

static void VuoImageRenderer_fini ( void  )
static

Destroys and deallocates the image renderer.

This function may be called from any thread.

Definition at line 314 of file VuoImageRenderer.cc.

◆ VuoImageRenderer_init()

static void VuoImageRenderer_init ( void  )
static

Initializes global state for rendering a VuoImage.

Definition at line 86 of file VuoImageRenderer.cc.

◆ VuoImageRenderer_make()

void* VuoImageRenderer_make ( void *  )

Deprecated.

This shim exists to enable old 3rd-party nodes to continue working.

Definition at line 121 of file VuoImageRenderer.cc.

◆ VuoImageRenderer_render()

VuoImage VuoImageRenderer_render ( VuoShader  shader,
unsigned int  pixelsWide,
unsigned int  pixelsHigh,
VuoImageColorDepth  imageColorDepth 
)

Produces a new VuoImage by rendering shader.

This function may be called from any thread.

Definition at line 131 of file VuoImageRenderer.cc.

Variable Documentation

◆ quadData

const GLfloat quadData[]
static
Initial value:
= {
-1, -1, 0, 1,
1, -1, 0, 1,
-1, 1, 0, 1,
1, 1, 0, 1,
0, 0, 0, 0,
1, 0, 0, 0,
0, 1, 0, 0,
1, 1, 0, 0
}

Positions and texture coordinates for a quad.

Definition at line 58 of file VuoImageRenderer.cc.

◆ unityMatrix

const GLfloat unityMatrix[16]
static
Initial value:
= {
1,0,0,0,
0,1,0,0,
0,0,1,0,
0,0,0,1
}

An identity matrix.

Definition at line 74 of file VuoImageRenderer.cc.

◆ VuoImageRendererGlobal

VuoImageRendererInternal VuoImageRendererGlobal
static

Internal state data for a VuoImageRenderer instance.

Definition at line 53 of file VuoImageRenderer.cc.