Loading...
Searching...
No Matches
VB.cpp
Go to the documentation of this file.
1
#
include
"VB.h"
2
#
include
<
GL
/
glew
.
h
>
3
4
VB
::
VB
()
5
{
6
glGenBuffers(1, &
m_renderer_id_
);
7
}
8
9
VB
::~
VB
()
10
{
11
glDeleteBuffers(1, &
m_renderer_id_
);
12
}
13
14
void
VB
::
bind
()
15
{
16
glBindBuffer(GL_ARRAY_BUFFER, m_renderer_id_);
17
}
18
19
void
VB
::
unbind
()
20
{
21
glBindBuffer(GL_ARRAY_BUFFER, 0);
22
23
}
VB
Definition
VB.h:7
VB::unbind
void unbind()
Definition
VB.cpp:19
VB::~VB
~VB()
Definition
VB.cpp:9
VB::m_renderer_id_
uint32_t m_renderer_id_
Definition
VB.h:8
VB::bind
void bind()
Definition
VB.cpp:14
VB::VB
VB()
Definition
VB.cpp:4
engine
src
hellfire
graphics
backends
opengl
VB.cpp
Generated by
1.9.8