nngn
Loading...
Searching...
No Matches
nngn::VAO Struct Referencefinal

#include <vao.h>

Inheritance diagram for nngn::VAO:
Collaboration diagram for nngn::VAO:

Classes

struct  Attrib
 

Public Member Functions

bool create (u32 vbo, u32 ebo)
 
bool destroy ()
 
bool vertex_attrib_pointers (const GLProgram &prog, std::size_t n, const Attrib *p)
 
bool create (u32 vbo, u32 ebo)
 
bool destroy ()
 
bool vertex_attrib_pointers (const GLProgram &prog, std::size_t n, const Attrib *p)
 
- Public Member Functions inherited from nngn::OpenGLHandle< VAO >
constexpr OpenGLHandle ()=default
 
constexpr OpenGLHandle (u32 h) noexcept
 
 OpenGLHandle (const OpenGLHandle &)=delete
 
 OpenGLHandle (OpenGLHandle &&lhs) noexcept
 
constexpr OpenGLHandle ()=default
 
constexpr OpenGLHandle (u32 h) noexcept
 
 OpenGLHandle (const OpenGLHandle &)=delete
 
 OpenGLHandle (OpenGLHandle &&lhs) noexcept
 
OpenGLHandleoperator= (const OpenGLHandle &)=delete
 
OpenGLHandleoperator= (OpenGLHandle &&lhs) noexcept
 
OpenGLHandleoperator= (const OpenGLHandle &)=delete
 
OpenGLHandleoperator= (OpenGLHandle &&lhs) noexcept
 
 ~OpenGLHandle ()
 
 ~OpenGLHandle ()
 
u32 id () const
 
u32id ()
 
u32 id () const
 
u32id ()
 

Public Attributes

u32 vbo = {}
 
u32 ebo = {}
 

Member Function Documentation

◆ create() [1/2]

bool nngn::VAO::create ( u32  vbo,
u32  ebo 
)
Here is the caller graph for this function:

◆ create() [2/2]

bool nngn::VAO::create ( u32  vbo,
u32  ebo 
)

◆ destroy() [1/2]

bool nngn::VAO::destroy ( )
Here is the caller graph for this function:

◆ destroy() [2/2]

bool nngn::VAO::destroy ( )

◆ vertex_attrib_pointers() [1/2]

bool nngn::VAO::vertex_attrib_pointers ( const GLProgram prog,
std::size_t  n,
const Attrib p 
)
Here is the caller graph for this function:

◆ vertex_attrib_pointers() [2/2]

bool nngn::VAO::vertex_attrib_pointers ( const GLProgram prog,
std::size_t  n,
const Attrib p 
)

Member Data Documentation

◆ ebo

u32 nngn::VAO::ebo = {}

◆ vbo

u32 nngn::VAO::vbo = {}

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