Vuo  0.5.3
 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 (void)
 Creates a reference-counted object for rendering a VuoImage.
 
VuoImage VuoImageRenderer_draw (VuoImageRenderer ir, VuoGlContext glContext, VuoShader shader, unsigned int pixelsWide, unsigned int pixelsHigh)
 Produces a new VuoImage by rendering shader.
 
unsigned long int VuoImageRenderer_draw_internal (VuoImageRenderer ir, VuoGlContext glContext, VuoShader shader, unsigned int pixelsWide, unsigned int pixelsHigh, bool outputToIOSurface)
 Helper for VuoImageRenderer_draw().
 

Class Documentation

struct VuoImageRendererInternal
Class Members
GLuint outputFramebuffer
GLuint quadElementBuffer
GLuint quadPositionBuffer
GLuint quadTextureCoordinateBuffer

Function Documentation

void VuoImageRenderer_destroy ( VuoImageRenderer  ir)

Destroys and deallocates the image renderer.

This function may be called from any thread.

Todo:
https://b33p.net/kosada/node/6752 — Why does this leak if we recycle it?
VuoImage VuoImageRenderer_draw ( VuoImageRenderer  ir,
VuoGlContext  glContext,
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,
VuoGlContext  glContext,
VuoShader  shader,
unsigned int  pixelsWide,
unsigned int  pixelsHigh,
bool  outputToIOSurface 
)
VuoImageRenderer VuoImageRenderer_make ( void  )

Creates a reference-counted object for rendering a VuoImage.

This function may be called from any thread.