Changeset 9820 in orxonox.OLD for branches/new_class_id/src/lib/graphics/resource_shader.h
- Timestamp:
- Sep 25, 2006, 12:25:00 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/resource_shader.h
r9818 r9820 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_shader.h 3 * @brief Contains the ResourceShader class, that handles the Resource-specific loading part of the Shader. 4 4 * 5 5 */ 6 6 7 #ifndef _RESOURCE_ TEXTURE_H8 #define _RESOURCE_ TEXTURE_H7 #ifndef _RESOURCE_SHADER_H 8 #define _RESOURCE_SHADER_H 9 9 10 10 #include "util/loading/resource.h" 11 #include " texture.h"11 #include "shader.h" 12 12 13 13 14 class Resource Texture : public Texture, public Resources::NewResource14 class ResourceShader : public Shader, public Resources::NewResource 15 15 { 16 16 public: 17 Resource Texture(const std::string& imageName, GLenum target = GL_TEXTURE_2D);17 ResourceShader(const std::string& vertexShaderName, const std::string& fragmentShaderName); 18 18 19 19 20 20 private: 21 class TextureResourcePointer : public Resources::StorePointer21 class ShaderResourcePointer : public Resources::StorePointer 22 22 { 23 23 public: 24 TextureResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const TextureData::Pointer& data);25 inline const TextureData::Pointer& ptr() const { return pointer; }24 ShaderResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const ShaderData::Pointer& data); 25 inline const ShaderData::Pointer& ptr() const { return pointer; } 26 26 private: 27 TextureData::Pointer pointer;27 ShaderData::Pointer pointer; 28 28 }; 29 29 … … 33 33 34 34 35 #endif /* _RESOURCE_ TEXTURE_H */35 #endif /* _RESOURCE_SHADER_H */
Note: See TracChangeset
for help on using the changeset viewer.