GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes
radix::VBO Class Reference

#include <external/RadixEngine/include/radix/core/gl/VBO.hpp>

Public Types

enum  Usage : uint8_t {
  Static = 0, Dynamic, Stream, Draw = 1 << 2,
  Read, Copy
}
 

Public Member Functions

 VBO ()
 
 VBO (std::size_t size, Usage usage=DefaultUsage)
 
 ~VBO ()
 
 VBO (const VBO &)=delete
 
VBOoperator= (const VBO &)=delete
 
 VBO (VBO &&)
 
VBOoperator= (VBO &&)
 
 operator unsigned int () const
 
void setSize (std::size_t size, Usage usage=DefaultUsage)
 
std::size_t getSize () const
 
void setData (const void *data, std::size_t count, Usage usage=DefaultUsage)
 
template<typename T >
void setData (const std::vector< T > &data, Usage usage=DefaultUsage)
 
template<typename T >
void setData (const T *data, std::size_t count, Usage usage=DefaultUsage)
 
void update (const void *data, std::size_t count=0, std::size_t offset=0)
 
template<typename T >
void update (const std::vector< T > &data, std::size_t count=0, std::size_t offset=0)
 
template<typename T >
void update (const T *data, std::size_t count, std::size_t offset=0)
 
void bind () const
 

Static Public Attributes

static constexpr Usage DefaultUsage = static_cast<Usage>(Static | Draw)
 

Protected Attributes

std::size_t size
 
unsigned int id
 

Member Enumeration Documentation

enum radix::VBO::Usage : uint8_t
Enumerator
Static 
Dynamic 
Stream 
Draw 
Read 
Copy 

Constructor & Destructor Documentation

radix::VBO::VBO ( )
radix::VBO::VBO ( std::size_t  size,
Usage  usage = DefaultUsage 
)
radix::VBO::~VBO ( )
radix::VBO::VBO ( const VBO )
delete
radix::VBO::VBO ( VBO &&  other)

Member Function Documentation

void radix::VBO::bind ( ) const
std::size_t radix::VBO::getSize ( ) const
inline
radix::VBO::operator unsigned int ( ) const
inline
VBO& radix::VBO::operator= ( const VBO )
delete
VBO & radix::VBO::operator= ( VBO &&  other)
void radix::VBO::setData ( const void *  data,
std::size_t  count,
Usage  usage = DefaultUsage 
)
template<typename T >
void radix::VBO::setData ( const std::vector< T > &  data,
Usage  usage = DefaultUsage 
)
inline
template<typename T >
void radix::VBO::setData ( const T *  data,
std::size_t  count,
Usage  usage = DefaultUsage 
)
inline
void radix::VBO::setSize ( std::size_t  size,
Usage  usage = DefaultUsage 
)
void radix::VBO::update ( const void *  data,
std::size_t  count = 0,
std::size_t  offset = 0 
)
template<typename T >
void radix::VBO::update ( const std::vector< T > &  data,
std::size_t  count = 0,
std::size_t  offset = 0 
)
inline
template<typename T >
void radix::VBO::update ( const T *  data,
std::size_t  count,
std::size_t  offset = 0 
)
inline

Field Documentation

constexpr Usage radix::VBO::DefaultUsage = static_cast<Usage>(Static | Draw)
static
unsigned int radix::VBO::id
protected
std::size_t radix::VBO::size
protected

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