Vuo  0.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Functions
VuoGlTexture

Description

A GL texture object.

Classes

struct  VuoGlTexture
 A GL texture object. More...
 

Functions

VuoGlTexture VuoGlTexture_valueFromString (const char *initializer)
 Parses initializer, a GL Texture represented as a JSON C string, and returns a VuoGlTexture structure.
 
char * VuoGlTexture_stringFromValue (const VuoGlTexture value)
 Returns a JSON string representing the specified texture, in the same format as typeInitWithValue.
 
char * VuoGlTexture_summaryFromValue (const VuoGlTexture value)
 A brief summary of the contents of this texture.
 

Class Documentation

struct VuoGlTexture
Class Members
unsigned long int glTextureName
unsigned long int pixelsHigh
unsigned long int pixelsWide We could glGetTexLevelParameteri() but that would require a GPU roundtrip (inefficient).

Function Documentation

char * VuoGlTexture_summaryFromValue ( const VuoGlTexture  value)

A brief summary of the contents of this texture.

Example:
GL Texture (ID 42)
640x480
VuoGlTexture VuoGlTexture_valueFromString ( const char *  initializer)

Parses initializer, a GL Texture represented as a JSON C string, and returns a VuoGlTexture structure.

Parameters
initializerA JSON string containing a GL Texture Name, and the texture's width and height in pixels.
Example:
{
"glTextureName": 42,
"pixelsWide": 640,
"pixelsHigh": 480
}