emilib
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
gl::VertComp Struct Reference

Public Member Functions

size_t sizeBytes () const
 
 VertComp (const char *name_, unsigned num_comps_, unsigned type_, Normalize normalize_)
 

Static Public Member Functions

static VertComp Float (const char *name)
 
static VertComp Vec2 (const char *name, Normalize normalize=DONT_NORMALIZE)
 
static VertComp RGBA32 (const char *name)
 

Public Attributes

std::string name
 
unsigned num_comps
 1 for scalars, 2 for Vec2 etc
 
unsigned type
 e.g. GL_FLOAT
 
Normalize normalize
 If we normalize, values are rescaled to [0, 1].
 
size_t offset
 Byte offset, filled in by VertexFormat::VertexFormat.
 

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