Last change
on this file since 9784 was
9784,
checked in by bensch, 18 years ago
|
orxonox/new_class_id: new Resources stuff
|
File size:
805 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file resource_texture.h |
---|
3 | * @brief Contains the ResourceTexture class, that handles the Resource-specific loading part of the Texture. |
---|
4 | * |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _RESOURCE_TEXTURE_H |
---|
8 | #define _RESOURCE_TEXTURE_H |
---|
9 | |
---|
10 | #include "util/loading/resource.h" |
---|
11 | #include "texture.h" |
---|
12 | |
---|
13 | |
---|
14 | class ResourceTexture : public Texture, public Resource |
---|
15 | { |
---|
16 | ResourceTexture(const std::string& imageName, GLenum target = GL_TEXTURE_2D); |
---|
17 | |
---|
18 | |
---|
19 | private: |
---|
20 | class TextureResourcePointer : public Resource::Pointer |
---|
21 | { |
---|
22 | public: |
---|
23 | TextureResourcePointer(const std::string& loadString, const Resource::KeepLevel& keepLevel, TextureData* data); |
---|
24 | inline const TextureData::Pointer& ptr() const { return pointer; } |
---|
25 | private: |
---|
26 | TextureData::Pointer pointer; |
---|
27 | }; |
---|
28 | |
---|
29 | private: |
---|
30 | static Resource::Type type; |
---|
31 | }; |
---|
32 | |
---|
33 | |
---|
34 | #endif /* _RESOURCE_TEXTURE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.