nngn
Loading...
Searching...
No Matches
vao.h
Go to the documentation of this file.
1
#ifndef NNGN_GRAPHICS_OPENGL_VAO_H
2
#define NNGN_GRAPHICS_OPENGL_VAO_H
3
4
#include "
handle.h
"
5
#include "
opengl.h
"
6
7
namespace
nngn
{
8
9
struct
GLProgram;
10
11
struct
VAO
final :
nngn::OpenGLHandle
<VAO> {
12
struct
Attrib
{ std::string_view
name
; GLsizei
size
; };
13
u32
vbo
= {},
ebo
= {};
14
bool
create
(u32
vbo
, u32
ebo
);
15
bool
destroy
();
16
bool
vertex_attrib_pointers
(
17
const
GLProgram &prog, std::size_t
n
,
const
Attrib *p);
18
};
19
20
}
21
22
#endif
nngn::OpenGLHandle
Definition
handle.h:12
n
local n
Definition
dump_lights.lua:5
nngn
Definition
audio.cpp:7
nngn::u32
std::uint32_t u32
Definition
def.h:14
handle.h
opengl.h
nngn::VAO::Attrib
Definition
vao.h:12
nngn::VAO::Attrib::name
std::string_view name
Definition
vao.h:12
nngn::VAO::Attrib::size
GLsizei size
Definition
vao.h:12
nngn::VAO
Definition
vao.h:11
nngn::VAO::ebo
u32 ebo
Definition
vao.h:13
nngn::VAO::vertex_attrib_pointers
bool vertex_attrib_pointers(const GLProgram &prog, std::size_t n, const Attrib *p)
Definition
vao.cpp:28
nngn::VAO::vbo
u32 vbo
Definition
vao.h:13
nngn::VAO::create
bool create(u32 vbo, u32 ebo)
Definition
vao.cpp:13
nngn::VAO::destroy
bool destroy()
Definition
vao.cpp:21
src
graphics
opengl
vao.h
Generated by
1.11.0