HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 UT_StringHolder &attrib_name, RE_GPUType t, int vector_size, int attrib_location)
 
bool assignTexBuffer (RE_Render *r, const UT_StringHolder &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 UT_StringHolder &name, bool *in_instance_group=nullptr)
 
static const UT_StringHoldergetGenericAttributeName (RE_GenericAttribID id)
 
static const UT_StringHoldergetGenericAttributeModeName (RE_GenericAttribID id)
 
static bool getGenericAttributeUniforms (RE_GenericAttribID id, UT_StringHolder &mode, UT_StringHolder &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 140 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 
)
static
bool RE_VertexState::assignTexBuffer ( RE_Render r,
const UT_StringHolder name,
RE_OGLTexture t,
int  mode 
)
bool RE_VertexState::assignZero ( RE_Render r,
const UT_StringHolder 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 
)
inline

Definition at line 248 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
static bool RE_VertexState::getConstInstanceAttributeSupport ( RE_GenericAttribID  id)
static
static RE_GenericAttribID RE_VertexState::getGenericAttributeID ( const UT_StringHolder name,
bool *  in_instance_group = nullptr 
)
static
static RE_ShaderAttribLocation RE_VertexState::getGenericAttributeLocation ( RE_GenericAttribID  id)
static
static const UT_StringHolder& RE_VertexState::getGenericAttributeModeName ( RE_GenericAttribID  id)
static
static const UT_StringHolder& RE_VertexState::getGenericAttributeName ( RE_GenericAttribID  id)
static
static bool RE_VertexState::getGenericAttributeUniforms ( RE_GenericAttribID  id,
UT_StringHolder mode,
UT_StringHolder sampler 
)
static
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
inline

Definition at line 271 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)
inline

Definition at line 265 of file RE_VertexState.h.

void RE_VertexState::setVertexStride ( int  stride)
inline

Definition at line 155 of file RE_VertexState.h.

static bool RE_VertexState::texBufferDeleted ( void ,
void  
)
static
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: