UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
module.h
Go to the documentation of this file.
1 #ifndef UGDK_RESOURCE_MODULE_H_
2 #define UGDK_RESOURCE_MODULE_H_
3 
5 
6 #include <ugdk/system/config.h>
7 
8 #include <ugdk/action.h>
9 #include <ugdk/graphic.h>
10 #include <ugdk/text.h>
11 #include <ugdk/structure.h>
13 
14 namespace ugdk {
15 namespace resource {
16 
18 bool Initialize(Manager* manager);
19 
21 void Release();
22 
24 Manager* manager();
25 
27 #ifndef UGDK_3D_ENABLED
28 graphic::GLTexture* GetTextureFromTag(const std::string& tag);
29 graphic::GLTexture* GetTextureFromFile(const std::string& file);
30 graphic::TextureAtlas* GetTextureAtlasFromTag(const std::string& tag);
31 graphic::TextureAtlas* GetTextureAtlasFromFile(const std::string& file);
32 text::LanguageWord* GetLanguageWord(const std::string& tag);
33 #endif // UGDK_3D_ENABLED
34 
35 } // namespace resource
36 } // namespace ugdk
37 
38 #endif // UGDK_RESOURCE_MODULE_H_
39 
graphic::GLTexture * GetTextureFromTag(const std::string &tag)
::ugdk::structure::IndexableTable< SpriteAnimation > SpriteAnimationTable
Definition: spritetypes.h:17
graphic::TextureAtlas * GetTextureAtlasFromFile(const std::string &file)
action::SpriteAnimationTable * GetSpriteAnimationTableFromFile(const std::string &file)
Definition: animation.h:11
graphic::GLTexture * GetTextureFromFile(const std::string &file)
bool Initialize(Manager *manager)
Initializes the module with the given Manager.
void Release()
Releases the module, disabling it.
Manager * manager()
Getter for the manager of the module.
text::LanguageWord * GetLanguageWord(const std::string &tag)
graphic::TextureAtlas * GetTextureAtlasFromTag(const std::string &tag)