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
7namespace nngn {
8
9struct GLProgram;
10
11struct 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();
17 const GLProgram &prog, std::size_t n, const Attrib *p);
18};
19
20}
21
22#endif
Definition handle.h:12
local n
Definition dump_lights.lua:5
Definition audio.cpp:7
std::uint32_t u32
Definition def.h:14
Definition vao.h:12
std::string_view name
Definition vao.h:12
GLsizei size
Definition vao.h:12
Definition vao.h:11
u32 ebo
Definition vao.h:13
bool vertex_attrib_pointers(const GLProgram &prog, std::size_t n, const Attrib *p)
Definition vao.cpp:28
u32 vbo
Definition vao.h:13
bool create(u32 vbo, u32 ebo)
Definition vao.cpp:13
bool destroy()
Definition vao.cpp:21