nngn
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
v
w
z
Typedefs
a
d
f
h
i
m
s
t
u
v
w
z
Enumerations
Enumerator
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
k
m
o
p
q
r
s
t
u
v
Enumerations
a
b
c
d
e
f
l
m
o
p
r
s
t
Enumerator
a
b
c
d
e
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Typedefs
Enumerations
Macros
c
d
e
f
g
l
n
p
s
t
x
▼
nngn
Documentation
►
Building
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
demos
►
maps
▼
src
►
audio
►
collision
►
compute
►
font
►
glsl
▼
graphics
▼
opengl
►
handle.h
►
opengl.cpp
opengl.h
post.cpp
►
post.h
prog.cpp
►
prog.h
resource.cpp
►
resource.h
►
utils.cpp
►
utils.h
vao.cpp
►
vao.h
►
terminal
►
vulkan
glfw.cpp
►
glfw.h
►
graphics.cpp
►
graphics.h
►
lua_graphics.cpp
►
lua_texture.cpp
►
pseudo.cpp
►
pseudo.h
shaders.cpp
►
stats.h
►
texture.cpp
►
texture.h
►
input
►
lson
►
lua
►
math
►
os
►
render
►
timing
►
utils
►
const.h
►
debug.h
►
entity.cpp
►
entity.h
lua_entity.cpp
►
main.cpp
►
tests
►
tools
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
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
};
11
struct
VAO
final :
nngn::OpenGLHandle
<VAO> {
…
};
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