Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
VuoImageRenderer.cc File Reference

Description

VuoImageRenderer implementation.

Classes

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

Macros

#define glGenVertexArrays   glGenVertexArraysAPPLE
 
#define glBindVertexArray   glBindVertexArrayAPPLE
 
#define glDeleteVertexArrays   glDeleteVertexArraysAPPLE
 

Functions

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

Variables

static VuoImageRendererInternal VuoImageRendererGlobal
 Internal state data for a VuoImageRenderer instance.
 
static const GLfloat triData []
 Positions and texture coordinates for a full-screen triangle.
 
static const GLfloat unityMatrix [16]
 An identity matrix.
 

Class Documentation

struct VuoImageRendererInternal
Class Members
GLuint outputFramebuffer
GLuint triDataBuffer
GLuint vertexArray

Function Documentation

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.

static void VuoImageRenderer_fini ( void  )
static

Destroys and deallocates the image renderer.

This function may be called from any thread.

static void VuoImageRenderer_init ( void  )
static

Initializes global state for rendering a VuoImage.

void* VuoImageRenderer_make ( void *  )

Deprecated.

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

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.

Variable Documentation

const GLfloat triData[]
static
Initial value:
= {
-1, -1, 0, 1,
3, -1, 0, 1,
-1, 3, 0, 1,
0, 0, 0, 0,
2, 0, 0, 0,
0, 2, 0, 0,
}

Positions and texture coordinates for a full-screen triangle.

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.

VuoImageRendererInternal VuoImageRendererGlobal
static

Internal state data for a VuoImageRenderer instance.