Changeset 9831 in orxonox.OLD for branches/new_class_id/src/lib/graphics/importer/resource_obj.h
- Timestamp:
- Sep 26, 2006, 3:18:28 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/importer/resource_obj.h
r9830 r9831 1 1 /*! 2 * @file resource_ texture.h3 * @brief Contains the Resource Texture class, that handles the Resource-specific loading part of the Texture.2 * @file resource_obj.h 3 * @brief Contains the ResourceOBJ class, that handles the Resource-specific loading part of the OBJ. 4 4 * 5 5 */ 6 6 7 #ifndef _RESOURCE_ TEXTURE_H8 #define _RESOURCE_ TEXTURE_H7 #ifndef _RESOURCE_OBJ_H 8 #define _RESOURCE_OBJ_H 9 9 10 10 #include "util/loading/resource.h" 11 #include " texture.h"11 #include "objModel.h" 12 12 13 14 class ResourceTexture : public Texture, public Resources::NewResource 13 class ResourceOBJ : public StaticModel, public Resources::NewResource 15 14 { 16 15 public: 17 Resource Texture(const std::string& imageName, GLenum target = GL_TEXTURE_2D);18 static Resource TexturecreateFromString(const std::string& loadString);16 ResourceOBJ(const std::string& imageName, float scaling = 1.0f); 17 static ResourceOBJ createFromString(const std::string& loadString); 19 18 20 19 private: 21 class TextureResourcePointer : public Resources::StorePointer20 class OBJResourcePointer : public Resources::StorePointer 22 21 { 23 22 public: 24 TextureResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const TextureData::Pointer& data);25 inline const TextureData::Pointer& ptr() const { return pointer; }23 OBJResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const StaticModelData::Pointer& data); 24 inline const StaticModelData::Pointer& ptr() const { return pointer; } 26 25 private: 27 TextureData::Pointer pointer;26 StaticModelData::Pointer pointer; 28 27 }; 29 28 30 29 private: 31 static Resources::tType<Resource Texture> type;30 static Resources::tType<ResourceOBJ> type; 32 31 }; 33 32 34 33 35 #endif /* _RESOURCE_ TEXTURE_H */34 #endif /* _RESOURCE_OBJ_H */
Note: See TracChangeset
for help on using the changeset viewer.