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