Vuo
1.2.1
|
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, unsigned int outputToSpecificTexture) |
Helper for VuoImageRenderer_draw(). | |
typedef void* VuoImageRenderer |
An object for rendering a VuoImage.
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, | ||
unsigned int | outputToSpecificTexture | ||
) |
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.