Ignore:
Timestamp:
04/11/06 09:20:23 (18 years ago)
Author:
igarcia
Message:
 
Location:
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGTexture.h

    r731 r745  
    4444         bool mCalculatedAvgColour; 
    4545 
     46         Ogre::Camera *mCamera; 
     47 
     48         Ogre::PixelFormat mPixelFormat; 
     49 
    4650  public: 
    4751     Texture(); 
    4852 
    4953     virtual ~Texture(); 
     54 
     55         void setRenderTargetListener(Ogre::RenderTargetListener *renderTargetListener); 
     56 
     57         virtual void create(Ogre::String fileName, unsigned int width, unsigned int height, Ogre::PixelFormat pixelFormat, Ogre::Camera *camera); 
    5058 
    5159         Ogre::ColourValue getAvgColour(); 
     
    6169         virtual void save(Ogre::String folderName, Ogre::String filename); 
    6270 
    63          void rotate(Ogre::Real rRotation); 
     71         virtual void update(); 
    6472 
    6573         void setCorners(Ogre::Real left, Ogre::Real top, Ogre::Real right, Ogre::Real bottom); 
     
    8997         void bind(Ogre::String textureName); 
    9098 
     99         void setCamera(Ogre::Camera *camera); 
     100 
     101         void setFormat(Ogre::PixelFormat pixelFormat); 
     102 
    91103}; 
    92104 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGTextureAtlas.h

    r731 r745  
    2525 
    2626  protected: 
     27         enum CurrentTextureAtlas  
     28         { 
     29             TEXTURE_ATLAS_PING, 
     30         TEXTURE_ATLAS_PONG 
     31     }; 
     32 
    2733     Ogre::String mTextureAtlasName; 
    2834 
    29          Ogre::TexturePtr mTextureAtlas; 
    30  
    31          Ogre::Camera *mCamera; 
     35         Ogre::Texture *mTextureAtlasPong; 
    3236         
    3337         Ogre::SceneNode *mTextureAtlasSceneNode; 
     
    3539     std::vector<TexturePtr> mTextureList; 
    3640 
    37          Ogre::PixelFormat mPixelFormat; 
     41         unsigned int mCurrentTextureAtlas; 
     42 
     43         bool mFirstUpdate; 
    3844 
    3945  public: 
     
    4349    virtual ~TextureAtlas(); 
    4450 
    45         unsigned int getReference(); 
    46  
    47         void setFormat(Ogre::PixelFormat pixelFormat); 
     51        void debug(); 
    4852 
    4953        void create(Ogre::String fileName, unsigned int width, unsigned int height, Ogre::PixelFormat pixelFormat, Ogre::Camera *camera); 
    5054 
    51         void setCamera(Ogre::Camera *camera); 
     55        void update(); 
    5256 
    53         void update(); 
     57        unsigned int getReference(); 
    5458 
    5559        void setTextureAtlasSceneNode(Ogre::SceneNode *textureAtlasSceneNode); 
Note: See TracChangeset for help on using the changeset viewer.