All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RE_VertexState Class Reference

#include <RE_VertexState.h>

Public Member Functions

 RE_VertexState ()
 ~RE_VertexState ()
bool init (RE_Render *r)
void reset ()
bool bindForUpdate (RE_Render *r)
void setVertexStride (int stride)
bool assignArray (RE_Render *r, RE_VertexArray *attrib, int attrib_location, RE_GPUType shader_type)
bool assignZero (RE_Render *r, const char *attrib_name, RE_GPUType t, int vector_size, int attrib_location)
bool assignTexBuffer (RE_Render *r, const char *name, RE_OGLTexture *t, int mode)
bool removeArray (RE_Render *r, int attrib_location)
void unbindElementArray (RE_Render *r)
bool bindForDrawing (RE_Render *r, RE_Shader *sh)
bool unbind (RE_Render *r)
bool checkDirty (RE_Render *r, int serial_index)
void reset (RE_Render *r)
bool compatibleWith (RE_Render *r, const RE_VertexMap &shader_map, const RE_VertexMap *geo_map, unsigned int stride)
void print (RE_Render *r, std::ostream &os)
bool hasBoundTBO (int tex_unit) const
int64 getMemoryUsage (bool inclusive) const

Static Public Member Functions

static void assignDefaultMap (RE_Render *r, RE_Shader *shader)
static RE_GenericAttribID getGenericAttributeID (const char *name, bool *in_instance_group=NULL)
static const char * getGenericAttributeName (RE_GenericAttribID id)
static const char * getGenericAttributeModeName (RE_GenericAttribID id)
static bool getGenericAttributeUniforms (RE_GenericAttribID id, UT_String &mode, UT_String &sampler)
static RE_ShaderAttribLocation getGenericAttributeLocation (RE_GenericAttribID id)
static bool getConstInstanceAttributeSupport (RE_GenericAttribID id)
static bool texBufferDeleted (void *, void *)
static void dumpGLVertexState (RE_Render *r)

Detailed Description

Definition at line 136 of file RE_VertexState.h.

Constructor & Destructor Documentation

RE_VertexState::RE_VertexState ( )
RE_VertexState::~RE_VertexState ( )

Member Function Documentation

bool RE_VertexState::assignArray ( RE_Render r,
RE_VertexArray attrib,
int  attrib_location,
RE_GPUType  shader_type 
static void RE_VertexState::assignDefaultMap ( RE_Render r,
RE_Shader shader 
bool RE_VertexState::assignTexBuffer ( RE_Render r,
const char *  name,
RE_OGLTexture t,
int  mode 
bool RE_VertexState::assignZero ( RE_Render r,
const char *  attrib_name,
RE_GPUType  t,
int  vector_size,
int  attrib_location 
bool RE_VertexState::bindForDrawing ( RE_Render r,
RE_Shader sh 
bool RE_VertexState::bindForUpdate ( RE_Render r)
bool RE_VertexState::checkDirty ( RE_Render r,
int  serial_index 

Definition at line 243 of file RE_VertexState.h.

bool RE_VertexState::compatibleWith ( RE_Render r,
const RE_VertexMap shader_map,
const RE_VertexMap geo_map,
unsigned int  stride 
static void RE_VertexState::dumpGLVertexState ( RE_Render r)
static bool RE_VertexState::getConstInstanceAttributeSupport ( RE_GenericAttribID  id)
static RE_GenericAttribID RE_VertexState::getGenericAttributeID ( const char *  name,
bool *  in_instance_group = NULL 
static RE_ShaderAttribLocation RE_VertexState::getGenericAttributeLocation ( RE_GenericAttribID  id)
static const char* RE_VertexState::getGenericAttributeModeName ( RE_GenericAttribID  id)
static const char* RE_VertexState::getGenericAttributeName ( RE_GenericAttribID  id)
static bool RE_VertexState::getGenericAttributeUniforms ( RE_GenericAttribID  id,
UT_String mode,
UT_String sampler 
int64 RE_VertexState::getMemoryUsage ( bool  inclusive) const

Returns the amount of main memory (NOT graphics memory!) owned by this RE_VertexState.

bool RE_VertexState::hasBoundTBO ( int  tex_unit) const

Definition at line 266 of file RE_VertexState.h.

bool RE_VertexState::init ( RE_Render r)
void RE_VertexState::print ( RE_Render r,
std::ostream &  os 
bool RE_VertexState::removeArray ( RE_Render r,
int  attrib_location 
void RE_VertexState::reset ( )
void RE_VertexState::reset ( RE_Render r)

Definition at line 260 of file RE_VertexState.h.

void RE_VertexState::setVertexStride ( int  stride)

Definition at line 151 of file RE_VertexState.h.

static bool RE_VertexState::texBufferDeleted ( void ,
bool RE_VertexState::unbind ( RE_Render r)
void RE_VertexState::unbindElementArray ( RE_Render r)

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