Class OpenGLVertexBuffer

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class OpenGLVertexBuffer : public ramus::OpenGLBuffer

Public Functions

inline OpenGLVertexBuffer(size_t size, const void *data, BufferFlags flags = BufferFlags::None)
inline void SetLayout(const Layout &layout)
inline const Layout &GetLayout() const
struct Element

Public Functions

inline Element(ShaderDataType type, const std::string &name, bool normalized = false)
inline uint32_t GetComponentCount() const

Public Members

std::string name
ShaderDataType type
uint32_t size
size_t offset
bool normalized
class Layout

Public Functions

Layout() = default
inline Layout(const std::initializer_list<Element> &elements)
inline uint32_t GetStride() const
inline const std::vector<Element> &GetElements() const
inline std::vector<Element>::iterator begin()
inline std::vector<Element>::iterator end()
inline std::vector<Element>::const_iterator begin() const
inline std::vector<Element>::const_iterator end() const