HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_Uniform Class Reference

#include <RE_Uniform.h>

+ Inheritance diagram for RE_Uniform:

Public Member Functions

 RE_Uniform (const char *name, RE_UniformType type, int size=1)
 
 RE_Uniform (RE_UniformBuiltIn built_in, int size)
 
virtual ~RE_Uniform ()
 
bool operator== (const RE_Uniform &uniform) const
 
void getIndexedName (int index, UT_String &out) const
 
const UT_StringgetName () const
 
int getSize () const
 
RE_UniformType getType () const
 
RE_UniformBuiltIn getBuiltInType () const
 
int getByteSize () const
 
const voidgetValue (int index=0) const
 
bool setValue (const void *value, int index=0)
 
bool setValues (const void *value)
 
UT_Color getColor (int index=0) const
 
fpreal getAlpha (int index=0) const
 
UT_Vector2F getVector2 (int index=0) const
 
UT_Vector3F getVector3 (int index=0) const
 
UT_Vector4F getVector4 (int index=0) const
 
UT_Matrix3D getMatrix3 (int index=0) const
 
UT_Matrix4D getMatrix4 (int index=0) const
 
bool copy (const RE_Uniform *copy)
 
bool copyBytes (const void *data)
 
int getVersion () const
 
void setAutoGenerated (bool gen=true)
 
bool isAutoGenerated () const
 
void print () const
 
void storeShaderUniformIndex (const RE_Shader *sh, int index) const
 
int getShaderUniformIndex (const RE_Shader *sh) const
 
void copyTo (RE_UniformStackEntry &entry) const
 
void copyFrom (const RE_UniformStackEntry &entry)
 

Static Public Member Functions

static void getArrayNameAndIndex (const char *str, UT_String &name_out, int *index_out)
 
static int getBuiltIn (const RE_Uniform *uniform, int languages=RE_SHADER_LANGUAGE_ALL)
 
static int getBuiltIn (const UT_String &name, RE_UniformType type, int languages=RE_SHADER_LANGUAGE_ALL)
 
static const char * getBuiltInName (RE_UniformBuiltIn built_in)
 
static RE_UniformType getBuiltInType (RE_UniformBuiltIn built_in)
 
static void initBuiltIns ()
 
static void registerBuiltIn (RE_Render *r, RE_UniformBuiltIn built_in, const RE_Uniform &uniform)
 
static void registerBuiltIn (RE_Render *r, RE_UniformBuiltIn built_in, const void *data=NULL)
 
static bool assignBuiltIn (RE_Render *r, RE_UniformBuiltIn built_in, const void *data)
 
static bool assignBuiltInArray (RE_Render *r, RE_UniformBuiltIn built_in, const void *data, int start, int num)
 
static void unregisterBuiltIn (RE_Render *r, RE_UniformBuiltIn built_in)
 
static int getVectorSize (RE_UniformType type)
 
static bool isFloat (RE_UniformType type)
 
static bool isInt (RE_UniformType type)
 
static bool isSampler (RE_UniformType type)
 

Additional Inherited Members

Detailed Description

Definition at line 212 of file RE_Uniform.h.

Constructor & Destructor Documentation

RE_Uniform::RE_Uniform ( const char *  name,
RE_UniformType  type,
int  size = 1 
)
RE_Uniform::RE_Uniform ( RE_UniformBuiltIn  built_in,
int  size 
)
virtual RE_Uniform::~RE_Uniform ( )
virtual

Member Function Documentation

static bool RE_Uniform::assignBuiltIn ( RE_Render r,
RE_UniformBuiltIn  built_in,
const void data 
)
static
static bool RE_Uniform::assignBuiltInArray ( RE_Render r,
RE_UniformBuiltIn  built_in,
const void data,
int  start,
int  num 
)
static
bool RE_Uniform::copy ( const RE_Uniform copy)
bool RE_Uniform::copyBytes ( const void data)
void RE_Uniform::copyFrom ( const RE_UniformStackEntry entry)
void RE_Uniform::copyTo ( RE_UniformStackEntry entry) const
fpreal RE_Uniform::getAlpha ( int  index = 0) const
static void RE_Uniform::getArrayNameAndIndex ( const char *  str,
UT_String name_out,
int index_out 
)
static
static int RE_Uniform::getBuiltIn ( const RE_Uniform uniform,
int  languages = RE_SHADER_LANGUAGE_ALL 
)
static
static int RE_Uniform::getBuiltIn ( const UT_String name,
RE_UniformType  type,
int  languages = RE_SHADER_LANGUAGE_ALL 
)
static
static const char* RE_Uniform::getBuiltInName ( RE_UniformBuiltIn  built_in)
static
RE_UniformBuiltIn RE_Uniform::getBuiltInType ( ) const
inline

Definition at line 239 of file RE_Uniform.h.

static RE_UniformType RE_Uniform::getBuiltInType ( RE_UniformBuiltIn  built_in)
static
int RE_Uniform::getByteSize ( ) const
inline

Definition at line 240 of file RE_Uniform.h.

UT_Color RE_Uniform::getColor ( int  index = 0) const
void RE_Uniform::getIndexedName ( int  index,
UT_String out 
) const
UT_Matrix3D RE_Uniform::getMatrix3 ( int  index = 0) const
UT_Matrix4D RE_Uniform::getMatrix4 ( int  index = 0) const
const UT_String& RE_Uniform::getName ( void  ) const
inline

Definition at line 232 of file RE_Uniform.h.

int RE_Uniform::getShaderUniformIndex ( const RE_Shader sh) const
int RE_Uniform::getSize ( ) const
inline

Definition at line 237 of file RE_Uniform.h.

RE_UniformType RE_Uniform::getType ( void  ) const
inline

Definition at line 238 of file RE_Uniform.h.

const void* RE_Uniform::getValue ( int  index = 0) const
UT_Vector2F RE_Uniform::getVector2 ( int  index = 0) const
UT_Vector3F RE_Uniform::getVector3 ( int  index = 0) const
UT_Vector4F RE_Uniform::getVector4 ( int  index = 0) const
static int RE_Uniform::getVectorSize ( RE_UniformType  type)
static
int RE_Uniform::getVersion ( ) const
inline

Definition at line 272 of file RE_Uniform.h.

static void RE_Uniform::initBuiltIns ( )
static
bool RE_Uniform::isAutoGenerated ( ) const
inline

Definition at line 276 of file RE_Uniform.h.

static bool RE_Uniform::isFloat ( RE_UniformType  type)
static
static bool RE_Uniform::isInt ( RE_UniformType  type)
static
static bool RE_Uniform::isSampler ( RE_UniformType  type)
static
bool RE_Uniform::operator== ( const RE_Uniform uniform) const
void RE_Uniform::print ( ) const
static void RE_Uniform::registerBuiltIn ( RE_Render r,
RE_UniformBuiltIn  built_in,
const RE_Uniform uniform 
)
static
static void RE_Uniform::registerBuiltIn ( RE_Render r,
RE_UniformBuiltIn  built_in,
const void data = NULL 
)
static
void RE_Uniform::setAutoGenerated ( bool  gen = true)
inline

Definition at line 274 of file RE_Uniform.h.

bool RE_Uniform::setValue ( const void value,
int  index = 0 
)
bool RE_Uniform::setValues ( const void value)
void RE_Uniform::storeShaderUniformIndex ( const RE_Shader sh,
int  index 
) const
static void RE_Uniform::unregisterBuiltIn ( RE_Render r,
RE_UniformBuiltIn  built_in 
)
static

The documentation for this class was generated from the following file: