Loading...
Searching...
No Matches
VA.cpp
Go to the documentation of this file.
1
#
include
"VA.h"
2
3
#
include
<
GL
/
glew
.
h
>
4
#
include
<
glm
/
detail
/
type_int
.
hpp
>
5
6
VA
::
VA
()
7
{
8
glGenVertexArrays(1, &
m_renderer_id_
);
9
}
10
11
VA
::~
VA
()
12
{
13
glDeleteVertexArrays(1, &
m_renderer_id_
);
14
}
15
16
void
VA
::
bind
()
const
{
17
glBindVertexArray(
m_renderer_id_
);
18
}
19
20
void
VA
::
unbind
()
21
{
22
glBindVertexArray(0);
23
}
24
25
uint32_t
VA
::
get_id
()
const
{
26
return
m_renderer_id_
;
27
}
VA
Definition
VA.h:7
VA::bind
void bind() const
Definition
VA.cpp:16
VA::m_renderer_id_
uint32_t m_renderer_id_
Definition
VA.h:8
VA::~VA
~VA()
Definition
VA.cpp:11
VA::VA
VA()
Definition
VA.cpp:6
VA::get_id
uint32_t get_id() const
Definition
VA.cpp:25
VA::unbind
void unbind()
Definition
VA.cpp:20
engine
src
hellfire
graphics
backends
opengl
VA.cpp
Generated by
1.9.8