]> git.tdb.fi Git - libs/gl.git/blob - source/objectpass.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / objectpass.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_OBJECTPASS_H_
9 #define MSP_GL_OBJECTPASS_H_
10
11 #include <msp/datafile/objectloader.h>
12
13 namespace Msp {
14 namespace GL {
15
16 class Program;
17 class ProgramData;
18
19 struct ObjectPass
20 {
21         class Loader: public DataFile::CollectionObjectLoader<ObjectPass>
22         {
23         public:
24                 Loader(ObjectPass &, Collection &);
25         private:
26                 void shader(const std::string &);
27         };
28
29         Program *shprog;
30         ProgramData *shdata;
31         bool use_textures;
32
33         ObjectPass();
34         ~ObjectPass();
35 };
36
37 } // namespace GL
38 } // namespace Msp
39
40 #endif