]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/texturecube_backend.h
Add support for padding in vertex formats
[libs/gl.git] / source / backends / opengl / texturecube_backend.h
1 #ifndef MSP_GL_TEXTURECUBE_BACKEND_H_
2 #define MSP_GL_TEXTURECUBE_BACKEND_H_
3
4 #include "texture.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class OpenGLTextureCube: public Texture
10 {
11 protected:
12         OpenGLTextureCube();
13
14         void allocate();
15         void sub_image(unsigned, unsigned, int, int, unsigned, unsigned, const void *);
16
17 public:
18         virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
19         virtual std::size_t get_data_size() const;
20         virtual void unload() { }
21 };
22
23 using TextureCubeBackend = OpenGLTextureCube;
24
25 unsigned get_gl_cube_face(unsigned);
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif