Game Develop Core: ImagesUsedInventorizer.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
ImagesUsedInventorizer.h
Go to the documentation of this file.
1
7 #if defined(GD_IDE_ONLY)
8
9 #ifndef IMAGESUSEDINVENTORIZER_H
10 #define IMAGESUSEDINVENTORIZER_H
11
12 #include <string>
13 #include <vector>
14 #include <iostream>
15 #include <set>
16 #include <boost/shared_ptr.hpp>
17 #include "GDCore/IDE/ArbitraryResourceWorker.h"
18
24 class ImagesUsedInventorizer : public gd::ArbitraryResourceWorker
25 {
26 public:
27
28 ImagesUsedInventorizer() : gd::ArbitraryResourceWorker() {};
29 virtual ~ImagesUsedInventorizer() {};
30
31 std::set<std::string> & GetAllUsedImages() { return allUsedImages; };
32
33 virtual void ExposeResource(std::string & resource) {};
34 virtual void ExposeImage(std::string & imageName) {allUsedImages.insert(imageName);};
35 virtual void ExposeShader(std::string & shaderName) {};
36
37 protected:
38 std::set<std::string> allUsedImages;
39 };
40
41 #endif // IMAGESUSEDINVENTORIZER_H
42
43 #endif