Bbop-2D
0.4.1-alpha
Bbop-2D is a c++ library based on openGL to make 2D game. It implement sprite, shape, light and more.
Loading...
Searching...
No Matches
include
BBOP
Graphics
EBO.h
Go to the documentation of this file.
1
/*
2
* EBO.h
3
*
4
* Ce programme est distribué sous les termes de la Licence Publique
5
* Générale GNU, version 3.0, telle que publiée par la Free Software
6
* Foundation. Consultez la Licence Publique Générale GNU pour plus de
7
* détails.
8
*
9
* Vous devez avoir reçu une copie de la Licence Publique Générale GNU
10
* en même temps que ce programme. Si ce n'est pas le cas, consultez
11
* <https://www.gnu.org/licenses/>.
12
*/
13
14
#ifndef EBO_CLASS_H
15
#define EBO_CLASS_H
16
17
#include <GL/glew.h>
18
#include <GLFW/glfw3.h>
19
20
class
EBO
21
{
22
public
:
23
// ID reference of Elements Buffer Object
24
GLuint
ID
;
25
// Constructor that generates a Elements Buffer Object and links it to indices
26
EBO
(GLuint *indices, GLsizeiptr size);
27
EBO
();
28
29
void
init
(GLuint *indices, GLsizeiptr size);
30
31
// Binds the EBO
32
void
Bind
()
const
;
33
// Unbinds the EBO
34
void
Unbind
();
35
// Deletes the EBO
36
void
Delete
();
37
// update the EBO
38
void
update
(GLuint *indices, GLsizeiptr size);
39
};
40
41
#endif
EBO
Definition
EBO.h:21
EBO::update
void update(GLuint *indices, GLsizeiptr size)
Definition
EBO.cpp:43
EBO::Delete
void Delete()
Definition
EBO.cpp:41
EBO::ID
GLuint ID
Definition
EBO.h:24
EBO::Bind
void Bind() const
Definition
EBO.cpp:35
EBO::EBO
EBO()
Definition
EBO.cpp:26
EBO::init
void init(GLuint *indices, GLsizeiptr size)
Definition
EBO.cpp:28
EBO::Unbind
void Unbind()
Definition
EBO.cpp:38
Generated by
1.9.8