Euphoria
eu::render::PointLayout Struct Reference

Stores what the data in the vertex_buffer is and how it is laid out/used Represents a OpenGL Vertex Array Object (VAO). More...

#include <buffer.h>

Inheritance diagram for eu::render::PointLayout:
eu::render::Id

Public Member Functions

 PointLayout ()
 
 ~PointLayout ()
 
 PointLayout (const PointLayout &)=delete
 
 PointLayout (PointLayout &&)=delete
 
void operator= (const PointLayout &)=delete
 
void operator= (PointLayout &&)=delete
 
void bind_data (const ShaderAttribute &attribute, int stride, int offset)
 
- Public Member Functions inherited from eu::render::Id
 Id ()
 
 ~Id ()=default
 
 Id (const Id &)=delete
 
 Id (Id &&)=delete
 
void operator= (const Id &)=delete
 
void operator= (Id &&)=delete
 
gl::Uint get_id () const
 

Static Public Member Functions

static const PointLayout *& get_bound ()
 
static void bind (const PointLayout *vao)
 

Public Attributes

std::vector< ShaderAttributeattributes
 

Additional Inherited Members

- Protected Attributes inherited from eu::render::Id
gl::Uint id
 

Detailed Description

Stores what the data in the vertex_buffer is and how it is laid out/used Represents a OpenGL Vertex Array Object (VAO).

Definition at line 33 of file buffer.h.

Constructor & Destructor Documentation

◆ PointLayout() [1/3]

eu::render::PointLayout::PointLayout ( )

Definition at line 57 of file buffer.cc.

◆ ~PointLayout()

eu::render::PointLayout::~PointLayout ( )

Definition at line 63 of file buffer.cc.

◆ PointLayout() [2/3]

eu::render::PointLayout::PointLayout ( const PointLayout )
delete

◆ PointLayout() [3/3]

eu::render::PointLayout::PointLayout ( PointLayout &&  )
delete

Member Function Documentation

◆ bind()

void eu::render::PointLayout::bind ( const PointLayout vao)
static

Definition at line 130 of file buffer.cc.

◆ bind_data()

void eu::render::PointLayout::bind_data ( const ShaderAttribute attribute,
int  stride,
int  offset 
)

Definition at line 110 of file buffer.cc.

◆ get_bound()

const PointLayout *& eu::render::PointLayout::get_bound ( )
static

Definition at line 139 of file buffer.cc.

◆ operator=() [1/2]

void eu::render::PointLayout::operator= ( const PointLayout )
delete

◆ operator=() [2/2]

void eu::render::PointLayout::operator= ( PointLayout &&  )
delete

Member Data Documentation

◆ attributes

std::vector<ShaderAttribute> eu::render::PointLayout::attributes

Definition at line 35 of file buffer.h.


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