-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVAO.h
More file actions
36 lines (30 loc) · 643 Bytes
/
VAO.h
File metadata and controls
36 lines (30 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef VAO_HEADER
#define VAO_HEADER
#ifdef GL_API_GLAD_OPENGL_3
#include <glad/glad.h>
#endif
class VAO {
public:
#ifdef GL_API_GLAD_OPENGL_3
GLuint ID;
#endif
VAO();
~VAO();
void Init();
#ifdef GL_API_GLAD_OPENGL_3
static void Init(GLuint* ID);
#endif
void Bind();
#ifdef GL_API_GLAD_OPENGL_3
static void Bind(GLuint ID);
#endif
static void Unbind();
void Delete();
#ifdef GL_API_GLAD_OPENGL_3
static void Delete(GLuint* ID);
template <typename type>
static void LinkAttrib(GLuint VBO, GLuint layout, GLuint numComponents, GLenum varType, GLsizeiptr stride, GLsizeiptr offset);
#endif
};
#include "VAO.tpp"
#endif