VVISF & VVGL
ISFVal.hpp File Reference
#include "VVISF_Base.hpp"
#include "VVISF_StringUtils.hpp"

Go to the source code of this file.

Classes

struct  VVISF::ISFVal
 ISFVal describes an ISF value- it has a type (ISFValType) and a type-dependent value. Intended to be immutable. More...
 

Enumerations

enum  VVISF::ISFValType {
  VVISF::ISFValType_None, VVISF::ISFValType_Event, VVISF::ISFValType_Bool, VVISF::ISFValType_Long,
  VVISF::ISFValType_Float, VVISF::ISFValType_Point2D, VVISF::ISFValType_Color, VVISF::ISFValType_Cube,
  VVISF::ISFValType_Image, VVISF::ISFValType_Audio, VVISF::ISFValType_AudioFFT
}
 Enumerates the different kinds of ISF values. More...
 

Functions

string VVISF::StringFromISFValType (const ISFValType &n)
 Returns a string describing the passed value type.
 
bool VVISF::ISFValTypeUsesImage (const ISFValType &n)
 Returns a true if the passed value type uses an image for its value.
 
ISFVal creation functions.

These functions create ISFVal instances. Everything here can be done with constructor functions, but the syntax here is a nicer and clearer.

VVISF_EXPORT ISFVal VVISF::ISFNullVal ()
 Creates and returns a null-type ISFVal.
 
VVISF_EXPORT ISFVal VVISF::ISFEventVal (const bool &n=false)
 Creates and returns an event-type ISFVal. Events don't technically have a value- events should send a "true" for one frame and a false for every other frame. For convenience, ISFVal uses a bool to cache the event value.
 
VVISF_EXPORT ISFVal VVISF::ISFBoolVal (const bool &n)
 Creates and returns a boolean-type ISFVal with the passed value.
 
VVISF_EXPORT ISFVal VVISF::ISFLongVal (const int32_t &n)
 Creates and returns a long-type ISFVal with the passed value.
 
VVISF_EXPORT ISFVal VVISF::ISFFloatVal (const double &n)
 Creates and returns a float-type ISFVal with the passed value.
 
VVISF_EXPORT ISFVal VVISF::ISFPoint2DVal (const double &inX, const double &inY)
 Creates and returns a 2d point-type ISFVal with the passed point values.
 
VVISF_EXPORT ISFVal VVISF::ISFColorVal (const double &inR, const double &inG, const double &inB, const double &inA)
 Creates and returns a color-type ISFVal with the passed R/G/B/A color values.
 
VVISF_EXPORT ISFVal VVISF::ISFImageVal (const VVGL::GLBufferRef &n)
 Creates and returns an image-type ISFVal with the passed buffer.