Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2006, 3:18:28 PM (18 years ago)
Author:
bensch
Message:

added resource_obj for new resource managed obj-loader

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/resource_obj.h

    r9830 r9831  
    11/*!
    2  * @file resource_texture.h
    3  * @brief Contains the ResourceTexture 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.
    44 *
    55 */
    66
    7 #ifndef _RESOURCE_TEXTURE_H
    8 #define _RESOURCE_TEXTURE_H
     7#ifndef _RESOURCE_OBJ_H
     8#define _RESOURCE_OBJ_H
    99
    1010#include "util/loading/resource.h"
    11 #include "texture.h"
     11#include "objModel.h"
    1212
    13 
    14 class ResourceTexture : public Texture, public Resources::NewResource
     13class ResourceOBJ : public StaticModel, public Resources::NewResource
    1514{
    1615public:
    17   ResourceTexture(const std::string& imageName, GLenum target = GL_TEXTURE_2D);
    18   static ResourceTexture createFromString(const std::string& loadString);
     16  ResourceOBJ(const std::string& imageName, float scaling = 1.0f);
     17  static ResourceOBJ createFromString(const std::string& loadString);
    1918
    2019private:
    21 class TextureResourcePointer : public Resources::StorePointer
     20class OBJResourcePointer : public Resources::StorePointer
    2221  {
    2322  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; }
    2625private:
    27     TextureData::Pointer pointer;
     26    StaticModelData::Pointer pointer;
    2827  };
    2928
    3029private:
    31   static Resources::tType<ResourceTexture> type;
     30  static Resources::tType<ResourceOBJ> type;
    3231};
    3332
    3433
    35 #endif /* _RESOURCE_TEXTURE_H */
     34#endif /* _RESOURCE_OBJ_H */
Note: See TracChangeset for help on using the changeset viewer.