RunicVTT Open Source Virtual Tabletop for TTRPG using P2P
Loading...
Searching...
No Matches
VertexBufferElement Struct Reference

#include <VertexBufferLayout.h>

Collaboration diagram for VertexBufferElement:

Static Public Member Functions

static unsigned int GetSizeOfType (unsigned int type)
 

Public Attributes

unsigned int type
 
unsigned int count
 
unsigned char normalized
 

Detailed Description

Definition at line 8 of file VertexBufferLayout.h.

Member Function Documentation

◆ GetSizeOfType()

static unsigned int VertexBufferElement::GetSizeOfType ( unsigned int type)
inlinestatic

Definition at line 14 of file VertexBufferLayout.h.

15 {
16 switch (type)
17 {
18 case GL_FLOAT:
19 return 4;
20 case GL_UNSIGNED_INT:
21 return 4;
22 case GL_UNSIGNED_BYTE:
23 return 1;
24 }
25 ASSERT(false);
26 return 0;
27 }
#define ASSERT(x)
Definition Renderer.h:9
Here is the caller graph for this function:

Member Data Documentation

◆ count

unsigned int VertexBufferElement::count

Definition at line 11 of file VertexBufferLayout.h.

◆ normalized

unsigned char VertexBufferElement::normalized

Definition at line 12 of file VertexBufferLayout.h.

◆ type

unsigned int VertexBufferElement::type

Definition at line 10 of file VertexBufferLayout.h.


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