changed copyright years in source files
[fegdk.git] / engine2 / src / shared / resourcemgr.h
blob7d9a2ee5ebf4d944018593f0eaed6570ef6da576
1 /*
2 fegdk: FE Game Development Kit
3 Copyright (C) 2001-2008 Alexey "waker" Yakovenko
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 Alexey Yakovenko
20 waker@users.sourceforge.net
23 #ifndef __F_RESOURCEMGR_H
24 #define __F_RESOURCEMGR_H
26 #include "f_baseobject.h"
27 #include "f_parser.h"
28 #include "f_helpers.h"
29 #include "f_resourcetable.h"
31 namespace fe
34 class texture;
35 class material;
36 class fontFT;
37 class model;
38 class animation;
39 class cgShader;
40 class ps14Shader;
41 class effect;
42 class sceneObject;
43 class animContainer;
45 class resourceMgr : public baseObject
47 private:
48 resource <texture> mTextureMgr;
49 resource <material> mMaterialMgr;
50 resource <fontFT> mFontMgr;
51 resource <sceneObject> mModelMgr;
52 resource <animation> mAnimationMgr;
53 resource <cgShader> mCGShaderMgr;
54 resource <ps14Shader> mPS14ShaderMgr;
55 resource <effect> mEffectMgr;
57 public:
58 resourceMgr (void);
59 ~resourceMgr (void);
61 resource <texture> *getTextureMgr (void);
62 resource <material> *getMaterialMgr (void);
63 resource <fontFT> *getFontFTMgr (void);
64 resource <sceneObject> *getModelMgr (void);
65 resource <animation> *getAnimationMgr (void);
66 resource <cgShader> *getCGShaderMgr (void);
67 resource <ps14Shader> *getPS14ShaderMgr (void);
68 resource <effect> *getEffectMgr (void);
70 texture* createTexture (const char *name);
71 texture* createTexture (charParser &parser);
72 material* createMaterial (const char *name);
73 material* createMaterial (charParser &parser);
74 fontFT* createFontFT (const char *name);
75 fontFT* createFontFT (charParser &parser);
76 sceneObject* createModel (const char *name, animContainer *anim = NULL);
77 sceneObject* createModel (charParser &parser);
78 animation* createAnimation (const char *name);
79 animation* createAnimation (charParser &parser);
80 cgShader* createCGShader (const char *name);
81 cgShader* createCGShader (charParser &parser);
82 ps14Shader* createPS14Shader (const char *name);
83 ps14Shader* createPS14Shader (charParser &parser);
84 effect* createEffect (const char *name);
85 effect* createEffect (charParser &parser);
90 #endif // __F_RESOURCEMGR_H