Just™ Game Engine
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
jng::LayoutElement Struct Reference

#include <vertex_array.hpp>

Public Types

enum class  DataType {
  Float ,
  Float2 ,
  Float3 ,
  Float4 ,
  Int ,
  Int2 ,
  Int3 ,
  Int4 ,
  UInt ,
  UInt2 ,
  UInt3 ,
  UInt4 ,
  UInt4x8
}
 

Public Member Functions

 LayoutElement (DataType inType, const char *inName, bool inPassAsFloat=false, bool inNormalized=false)
 

Static Public Member Functions

static size_t dataTypeToSize (DataType type)
 

Public Attributes

std::string name
 
DataType type
 
size_t size
 
uintptr_t offset
 
bool passAsFloat
 
bool normalized
 

Member Enumeration Documentation

◆ DataType

enum class jng::LayoutElement::DataType
strong
Enumerator
Float 
Float2 
Float3 
Float4 
Int 
Int2 
Int3 
Int4 
UInt 
UInt2 
UInt3 
UInt4 
UInt4x8 

Constructor & Destructor Documentation

◆ LayoutElement()

jng::LayoutElement::LayoutElement ( DataType  inType,
const char *  inName,
bool  inPassAsFloat = false,
bool  inNormalized = false 
)

Member Function Documentation

◆ dataTypeToSize()

size_t jng::LayoutElement::dataTypeToSize ( DataType  type)
static

Member Data Documentation

◆ name

std::string jng::LayoutElement::name

◆ normalized

bool jng::LayoutElement::normalized

◆ offset

uintptr_t jng::LayoutElement::offset

◆ passAsFloat

bool jng::LayoutElement::passAsFloat

◆ size

size_t jng::LayoutElement::size

◆ type

DataType jng::LayoutElement::type

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