Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/graphics/importer/resource_texture.h @ 9847

Last change on this file since 9847 was 9847, checked in by bensch, 18 years ago

renamed NewResource to Resource

File size: 995 bytes
RevLine 
[9781]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
[9847]14class ResourceTexture : public Texture, public Resources::Resource
[9781]15{
[9785]16public:
[9781]17  ResourceTexture(const std::string& imageName, GLenum target = GL_TEXTURE_2D);
[9823]18  static ResourceTexture createFromString(const std::string& loadString);
[9781]19
20private:
[9791]21class TextureResourcePointer : public Resources::StorePointer
[9781]22  {
23  public:
[9791]24    TextureResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const TextureData::Pointer& data);
[9784]25    inline const TextureData::Pointer& ptr() const { return pointer; }
[9846]26    virtual bool last() const { return pointer.count() == 1; }
27  private:
[9784]28    TextureData::Pointer pointer;
[9781]29  };
30
[9785]31private:
[9823]32  static Resources::tType<ResourceTexture> type;
[9781]33};
34
35
36#endif /* _RESOURCE_TEXTURE_H */
Note: See TracBrowser for help on using the repository browser.