Vuo  0.5.7
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
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

void VuoImageRenderer_destroy (VuoImageRenderer ir)
 Destroys and deallocates the image renderer.
 
VuoImageRenderer VuoImageRenderer_make (VuoGlContext glContext)
 Creates a reference-counted object for rendering a VuoImage.
 
VuoImage VuoImageRenderer_draw (VuoImageRenderer ir, VuoShader shader, unsigned int pixelsWide, unsigned int pixelsHigh)
 Produces a new VuoImage by rendering shader.
 
unsigned long int VuoImageRenderer_draw_internal (VuoImageRenderer ir, VuoShader shader, unsigned int pixelsWide, unsigned int pixelsHigh, bool outputToIOSurface)
 Helper for VuoImageRenderer_draw().
 

Class Documentation

struct VuoImageRendererInternal
Class Members
VuoGlContext glContext
GLuint outputFramebuffer
GLuint quadDataBuffer
GLuint quadElementBuffer
GLuint vertexArray

Function Documentation

void VuoImageRenderer_destroy ( VuoImageRenderer  ir)

Destroys and deallocates the image renderer.

This function may be called from any thread.

VuoImage VuoImageRenderer_draw ( VuoImageRenderer  ir,
VuoShader  shader,
unsigned int  pixelsWide,
unsigned int  pixelsHigh 
)

Produces a new VuoImage by rendering shader.

This function may be called from any thread. (However, the caller is responsible for ensuring that the GL context is not used simultaneously on multiple threads.) (Additionally, the caller is responsible for ensuring that the same VuoImageRenderer is not used simultaneously on multiple threads.)

unsigned long int VuoImageRenderer_draw_internal ( VuoImageRenderer  ir,
VuoShader  shader,
unsigned int  pixelsWide,
unsigned int  pixelsHigh,
bool  outputToIOSurface 
)
VuoImageRenderer VuoImageRenderer_make ( VuoGlContext  glContext)

Creates a reference-counted object for rendering a VuoImage.

This function may be called from any thread.

Todo:
https://b33p.net/kosada/node/6901
Todo:
https://b33p.net/kosada/node/6901