Vuo
0.4.2
|
VuoShader C type definition.
Classes | |
struct | _VuoShader |
A graphics shader program, specifying how to render a 3D object. More... | |
Macros | |
#define | VUOSHADER_GLSL_SOURCE(version, source) "#version " #version "\n" #source |
A macro to facilitate defining a GLSL shader in a C source file. | |
Typedefs | |
typedef struct _VuoShader * | VuoShader |
A graphics shader program, specifying how to render a 3D object. | |
Functions | |
VuoShader | VuoShader_make (const char *vertexShaderSource, const char *fragmentShaderSource) |
Compiles, links, and uploads the specified shader sources. | |
VuoShader | VuoShader_valueFromString (const char *initializer) |
Unserializes the pointer in initializer. | |
char * | VuoShader_stringFromValue (const VuoShader value) |
Serializes the pointer to the VuoShader object, since we need to preserve its reference count. | |
char * | VuoShader_summaryFromValue (const VuoShader value) |
VuoShader | VuoShader_makeImageShader (void) |
Returns a shader that renders objects with an image (ignoring lighting), specified by uniform texture . | |
void | VuoShader_resetTextures (VuoShader shader) |
Empties the list of textures associated with shader . | |
void | VuoShader_addTexture (VuoShader shader, VuoImage texture, const char *uniformIdentifier) |
Adds to shader an association between texture and uniformIdentifier . | |
#define | VuoList_VuoInteger_TYPE_DEFINED |
#define | VuoList_VuoImage_TYPE_DEFINED |
typedef void * | VuoList_VuoInteger |
typedef void * | VuoList_VuoImage |