Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 25, 2006, 12:25:00 PM (18 years ago)
Author:
bensch
Message:

added resource_shader, the new ResourceLoadHandler for the Shader

File:
1 copied

Legend:

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

    r9818 r9820  
    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_shader.h
     3 * @brief Contains the ResourceShader class, that handles the Resource-specific loading part of the Shader.
    44 *
    55 */
    66
    7 #ifndef _RESOURCE_TEXTURE_H
    8 #define _RESOURCE_TEXTURE_H
     7#ifndef _RESOURCE_SHADER_H
     8#define _RESOURCE_SHADER_H
    99
    1010#include "util/loading/resource.h"
    11 #include "texture.h"
     11#include "shader.h"
    1212
    1313
    14 class ResourceTexture : public Texture, public Resources::NewResource
     14class ResourceShader : public Shader, public Resources::NewResource
    1515{
    1616public:
    17   ResourceTexture(const std::string& imageName, GLenum target = GL_TEXTURE_2D);
     17  ResourceShader(const std::string& vertexShaderName, const std::string& fragmentShaderName);
    1818
    1919
    2020private:
    21 class TextureResourcePointer : public Resources::StorePointer
     21class ShaderResourcePointer : public Resources::StorePointer
    2222  {
    2323  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; }
    2626  private:
    27     TextureData::Pointer pointer;
     27    ShaderData::Pointer pointer;
    2828  };
    2929
     
    3333
    3434
    35 #endif /* _RESOURCE_TEXTURE_H */
     35#endif /* _RESOURCE_SHADER_H */
Note: See TracChangeset for help on using the changeset viewer.