Untitled Game engine no.5  1.0
Public Member Functions | Public Attributes | List of all members
Engine::BufferElement Struct Reference

#include <Buffer.hpp>

Public Member Functions

 BufferElement (ShaderDataType type, const std::string &name, bool norm=false)
 
uint32_t GetComponentCount () const
 Get the number of elements in this component.
 

Public Attributes

std::string name
 Name of this element.
 
ShaderDataType type
 
uint32_t offset
 Offset of component in the vertex.
 
uint32_t size
 Size of the datatype element.
 
bool normalized
 

Detailed Description

An element in a VertexBuffer's layout

See also
VertexBuffer

Constructor & Destructor Documentation

◆ BufferElement()

Engine::BufferElement::BufferElement ( ShaderDataType  type,
const std::string &  name,
bool  norm = false 
)
inline

Creates a new buffer element

Parameters
typethe type of element
namename of the element
normif this data is normalized

Member Data Documentation

◆ type

ShaderDataType Engine::BufferElement::type

Type of this element

See also
ShaderDataType

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