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

Description

VuoSceneObjectRenderer interface.

Typedefs

typedef void * VuoSceneObjectRenderer
 Context data for applying a shader to a VuoSceneObject.
 

Functions

VuoSceneObjectRenderer VuoSceneObjectRenderer_make (VuoShader shader)
 Creates a reference-counted object for applying a shader to a VuoSceneObject.
 
VuoSceneObject VuoSceneObjectRenderer_draw (VuoSceneObjectRenderer sceneObjectRenderer, VuoSceneObject object)
 Produces a new VuoSceneObject by rendering sceneObject using shader's GLSL vertex shader.
 

Typedef Documentation

typedef void* VuoSceneObjectRenderer

Context data for applying a shader to a VuoSceneObject.

Function Documentation

VuoSceneObject VuoSceneObjectRenderer_draw ( VuoSceneObjectRenderer  sor,
VuoSceneObject  sceneObject 
)

Produces a new VuoSceneObject by rendering sceneObject using shader's GLSL vertex shader.

VuoSubmeshes are left unchanged if they have an elementAssemblyMethod that differs from the shader's inputElementType.

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 VuoSceneObjectRenderer is not used simultaneously on multiple threads.)

VuoSceneObjectRenderer VuoSceneObjectRenderer_make ( VuoShader  shader)

Creates a reference-counted object for applying a shader to a VuoSceneObject.

This function may be called from any thread.