]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/vertexsetup_backend.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / backends / opengl / vertexsetup_backend.h
1 #ifndef MSP_GL_VERTEXSETUP_BACKEND_H_
2 #define MSP_GL_VERTEXSETUP_BACKEND_H_
3
4 #include <msp/core/noncopyable.h>
5
6 namespace Msp {
7 namespace GL {
8
9 class VertexArray;
10 class VertexFormat;
11
12 class OpenGLVertexSetup: public NonCopyable
13 {
14         friend class OpenGLPipelineState;
15
16 protected:
17         unsigned id;
18
19         OpenGLVertexSetup();
20         OpenGLVertexSetup(OpenGLVertexSetup &&);
21         ~OpenGLVertexSetup();
22
23         static void require_format(const VertexFormat &, bool);
24         void update(unsigned) const;
25         void update_vertex_array(const VertexArray &, unsigned, unsigned, bool) const;
26
27         void unload();
28
29         void set_debug_name(const std::string &);
30 };
31
32 using VertexSetupBackend = OpenGLVertexSetup;
33
34 } // namespace GL
35 } // namespace Msp
36
37 #endif