Vuo  2.0.2
Macros | Functions
VuoShaderUniforms.h File Reference

Description

VuoShader uniform setters.

Definition in file VuoShaderUniforms.h.

Go to the source code of this file.

Macros

#define SET_UNIFORM(typeName, valueName)
 Helper for VuoShader_setUniform_*(). More...
 
#define SET_UNIFORM_HEAP(typeName, valueName)
 Helper for VuoShader_setUniform_*(). More...
 

Functions

void VuoShader_setUniform_VuoImage (VuoShader shader, const char *uniformIdentifier, const VuoImage image)
 Sets a VuoImage input value on the specified shader. More...
 
void VuoShader_setUniform_VuoBoolean (VuoShader shader, const char *uniformIdentifier, const VuoBoolean boolean)
 Sets a bool uniform value on the specified shader. More...
 
void VuoShader_setUniform_VuoInteger (VuoShader shader, const char *uniformIdentifier, const VuoInteger integer)
 Sets an int uniform value on the specified shader. More...
 
void VuoShader_setUniform_VuoReal (VuoShader shader, const char *uniformIdentifier, const VuoReal real)
 Sets a float uniform value on the specified shader. More...
 
void VuoShader_setUniform_VuoPoint2d (VuoShader shader, const char *uniformIdentifier, const VuoPoint2d point2d)
 Sets a vec2 uniform value on the specified shader. More...
 
void VuoShader_setUniform_VuoPoint3d (VuoShader shader, const char *uniformIdentifier, const VuoPoint3d point3d)
 Sets a vec3 uniform value on the specified shader. More...
 
void VuoShader_setUniform_VuoPoint4d (VuoShader shader, const char *uniformIdentifier, const VuoPoint4d point4d)
 Sets a vec4 uniform value on the specified shader. More...
 
void VuoShader_setUniform_VuoColor (VuoShader shader, const char *uniformIdentifier, const VuoColor colorUnpremultiplied)
 Sets a color uniform value on the specified shader accepting a VuoColor. More...
 
void VuoShader_setUniform_VuoList_VuoBoolean (VuoShader shader, const char *uniformIdentifier, const VuoList_VuoBoolean booleans)
 Sets a list of bool uniform values on the specified shader. More...
 
void VuoShader_setUniform_VuoList_VuoInteger (VuoShader shader, const char *uniformIdentifier, const VuoList_VuoInteger integers)
 Sets a list of int uniform values on the specified shader. More...
 
void VuoShader_setUniform_VuoList_VuoReal (VuoShader shader, const char *uniformIdentifier, const VuoList_VuoReal reals)
 Sets a list of float uniform values on the specified shader. More...
 
void VuoShader_setUniform_VuoList_VuoPoint2d (VuoShader shader, const char *uniformIdentifier, const VuoList_VuoPoint2d point2ds)
 Sets a list of vec2 uniform values on the specified shader. More...
 
void VuoShader_setUniform_VuoList_VuoPoint3d (VuoShader shader, const char *uniformIdentifier, const VuoList_VuoPoint3d point3ds)
 Sets a list of vec3 uniform values on the specified shader. More...
 
void VuoShader_setUniform_VuoList_VuoPoint4d (VuoShader shader, const char *uniformIdentifier, const VuoList_VuoPoint4d point4ds)
 Sets a list of vec4 uniform values on the specified shader. More...
 
void VuoShader_setUniform_VuoList_VuoColor (VuoShader shader, const char *uniformIdentifier, const VuoList_VuoColor colorsP)
 Sets a list of color uniform values on the specified shader's uniform uniformIdentifier of type vec4. More...
 
void VuoShader_setUniform_mat2 (VuoShader shader, const char *uniformIdentifier, float *mat2)
 Sets a mat2 (column-major 2x2 matrix) uniform value on the specified shader. More...
 
void VuoShader_setUniform_mat3 (VuoShader shader, const char *uniformIdentifier, float *mat3)
 Sets a mat3 (column-major 3x3 matrix) uniform value on the specified shader. More...
 
void VuoShader_setUniform_mat4 (VuoShader shader, const char *uniformIdentifier, float *mat4)
 Sets a mat4 (column-major 4x4 matrix) uniform value on the specified shader. More...
 
VuoImage VuoShader_getUniform_VuoImage (VuoShader shader, const char *uniformIdentifier)
 Returns the VuoImage for the specified uniformIdentifier, or NULL if none matches. More...
 
VuoImage VuoShader_getFirstImage (VuoShader shader)
 Returns the first-added VuoImage uniform value, or NULL if there are no image uniforms. More...
 

Macro Definition Documentation

◆ SET_UNIFORM

#define SET_UNIFORM (   typeName,
  valueName 
)

Helper for VuoShader_setUniform_*().

Definition at line 13 of file VuoShaderUniforms.h.

◆ SET_UNIFORM_HEAP

#define SET_UNIFORM_HEAP (   typeName,
  valueName 
)

Helper for VuoShader_setUniform_*().

Definition at line 55 of file VuoShaderUniforms.h.