Brenta Engine
1.2
Loading...
Searching...
No Matches
vao.hpp
1
// SPDX-License-Identifier: MIT
2
// Author: Giovanni Santini
3
// Mail: giovanni.santini@proton.me
4
// Github: @San7o
5
6
#pragma once
7
8
#include <brenta/buffer.hpp>
9
#include <glad/glad.h>
10
11
namespace
brenta
12
{
13
14
namespace
types
15
{
16
22
class
vao
23
{
24
public
:
28
unsigned
int
vao_id
;
29
35
vao
()
36
{
37
}
43
void
init
();
44
49
unsigned
int
get_vao
();
53
void
bind
();
57
void
unbind
();
61
void
destroy
();
75
void
set_vertex_data
(
buffer
buffer
,
unsigned
int
index, GLint size,
76
GLenum type, GLboolean is_normalized, GLsizei stride,
77
const
void
*pointer);
78
};
79
80
}
// namespace types
81
82
}
// namespace brenta
brenta::types::buffer
Buffer wrapper around OpenGL buffer objects.
Definition
buffer.hpp:30
brenta::types::vao
Vertex Array Object (VAO)
Definition
vao.hpp:23
brenta::types::vao::bind
void bind()
Bind the VAO.
Definition
vao.cpp:26
brenta::types::vao::set_vertex_data
void set_vertex_data(buffer buffer, unsigned int index, GLint size, GLenum type, GLboolean is_normalized, GLsizei stride, const void *pointer)
Set the vertex data.
Definition
vao.cpp:41
brenta::types::vao::vao_id
unsigned int vao_id
Vertex Array Object (VAO)
Definition
vao.hpp:28
brenta::types::vao::get_vao
unsigned int get_vao()
Get the VAO.
Definition
vao.cpp:16
brenta::types::vao::unbind
void unbind()
Unbind the VAO.
Definition
vao.cpp:36
brenta::types::vao::init
void init()
Init Constructor.
Definition
vao.cpp:11
brenta::types::vao::destroy
void destroy()
Delete the VAO.
Definition
vao.cpp:53
brenta::types::vao::vao
vao()
Empty Constructor.
Definition
vao.hpp:35
include
brenta
vao.hpp
Generated by
1.12.0