]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/batch_backend.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / backends / opengl / batch_backend.h
1 #ifndef MSP_GL_BATCH_BACKEND_H_
2 #define MSP_GL_BATCH_BACKEND_H_
3
4 #include "datatype.h"
5 #include "primitivetype.h"
6
7 namespace Msp {
8 namespace GL {
9
10 class OpenGLBatch
11 {
12         friend class OpenGLCommands;
13
14 protected:
15         unsigned gl_prim_type;
16         unsigned gl_index_type;
17
18         OpenGLBatch(PrimitiveType);
19
20         static bool check_restart(bool);
21
22         void set_index_type(DataType);
23 };
24
25 using BatchBackend = OpenGLBatch;
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif