]> git.tdb.fi Git - libs/gltk.git/blob - source/partcache.h
b856f9da47a486151f3a10b62c51f1f0c60fb02c
[libs/gltk.git] / source / partcache.h
1 #ifndef MSP_GLTK_PARTCACHE_H_
2 #define MSP_GLTK_PARTCACHE_H_
3
4 #include <msp/gl/mesh.h>
5 #include <msp/gl/texture2d.h>
6
7 namespace Msp {
8 namespace GLtk {
9
10 struct CachedPart
11 {
12         const GL::Texture2D *texture;
13         GL::Mesh *mesh;
14
15         CachedPart();
16         ~CachedPart();
17
18         void clear_mesh();
19 };
20
21 } // namespace GLtk
22 } // namespace Msp
23
24 #endif