-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvertexarray.h
43 lines (26 loc) · 1.01 KB
/
vertexarray.h
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
37
38
39
40
41
42
43
#include <vector>
#include "buffer.h"
#pragma once
namespace EZGraphics {
/* ------------------------------------------- */
class VertexArray {
private:
GLuint handle;
public:
VertexArray();
~VertexArray();
VertexArray ( const VertexArray & );
VertexArray & operator= ( const VertexArray & );
void attachInstancedAttribute ( const GLuint aix, const Buffer * b, GLuint divisor = 1 );
void attachAttribute ( const GLuint aix, const Buffer *b );
void on();
void off();
void sendToPipeline ( GLenum ptype, GLint first, GLsizei num );
void sendToPipelineIndexed ( GLenum ptype, IndexBuffer *b, GLint first, GLsizei num );
void sendToPipelineInstanced ( GLenum ptype, GLint first, GLsizei num, GLsizei N );
void sendToPipelineInstancedIndexed ( GLenum ptype, IndexBuffer *b, GLint first, GLsizei num, GLsizei N );
void setDivisor ( GLuint aix, GLuint divisor );
void resetDivisor ( GLuint aix );
};
/* ------------------------------------------- */
};