Vuo  1.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
VuoImageRenderer.h File Reference

Description

VuoImageRenderer interface.

Typedefs

typedef void * VuoImageRenderer
 An object for rendering a VuoImage.
 

Functions

VuoImageRenderer VuoImageRenderer_make (VuoGlContext glContext)
 Creates a reference-counted object for rendering a VuoImage.
 
VuoImage VuoImageRenderer_draw (VuoImageRenderer imageRenderer, VuoShader shader, unsigned int pixelsWide, unsigned int pixelsHigh, VuoImageColorDepth imageColorDepth)
 Produces a new VuoImage by rendering shader.
 
unsigned long int VuoImageRenderer_draw_internal (VuoImageRenderer ir, VuoShader shader, unsigned int pixelsWide, unsigned int pixelsHigh, VuoImageColorDepth imageColorDepth, bool outputToIOSurface, bool outputToGlTextureRectangle)
 Helper for VuoImageRenderer_draw().
 

Typedef Documentation

typedef void* VuoImageRenderer

An object for rendering a VuoImage.

Function Documentation

VuoImage VuoImageRenderer_draw ( VuoImageRenderer  ir,
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. (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,
VuoImageColorDepth  imageColorDepth,
bool  outputToIOSurface,
bool  outputToGlTextureRectangle 
)

Helper for VuoImageRenderer_draw().

If outputToGlTextureRectangle is true, the caller is responsible for deleting the texture (it should not be thrown into the GL texture pool).

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