- Timestamp:
- 04/11/06 09:20:23 (19 years ago)
- 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 44 44 bool mCalculatedAvgColour; 45 45 46 Ogre::Camera *mCamera; 47 48 Ogre::PixelFormat mPixelFormat; 49 46 50 public: 47 51 Texture(); 48 52 49 53 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); 50 58 51 59 Ogre::ColourValue getAvgColour(); … … 61 69 virtual void save(Ogre::String folderName, Ogre::String filename); 62 70 63 v oid rotate(Ogre::Real rRotation);71 virtual void update(); 64 72 65 73 void setCorners(Ogre::Real left, Ogre::Real top, Ogre::Real right, Ogre::Real bottom); … … 89 97 void bind(Ogre::String textureName); 90 98 99 void setCamera(Ogre::Camera *camera); 100 101 void setFormat(Ogre::PixelFormat pixelFormat); 102 91 103 }; 92 104 -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGTextureAtlas.h
r731 r745 25 25 26 26 protected: 27 enum CurrentTextureAtlas 28 { 29 TEXTURE_ATLAS_PING, 30 TEXTURE_ATLAS_PONG 31 }; 32 27 33 Ogre::String mTextureAtlasName; 28 34 29 Ogre::TexturePtr mTextureAtlas; 30 31 Ogre::Camera *mCamera; 35 Ogre::Texture *mTextureAtlasPong; 32 36 33 37 Ogre::SceneNode *mTextureAtlasSceneNode; … … 35 39 std::vector<TexturePtr> mTextureList; 36 40 37 Ogre::PixelFormat mPixelFormat; 41 unsigned int mCurrentTextureAtlas; 42 43 bool mFirstUpdate; 38 44 39 45 public: … … 43 49 virtual ~TextureAtlas(); 44 50 45 unsigned int getReference(); 46 47 void setFormat(Ogre::PixelFormat pixelFormat); 51 void debug(); 48 52 49 53 void create(Ogre::String fileName, unsigned int width, unsigned int height, Ogre::PixelFormat pixelFormat, Ogre::Camera *camera); 50 54 51 void setCamera(Ogre::Camera *camera);55 void update(); 52 56 53 void update();57 unsigned int getReference(); 54 58 55 59 void setTextureAtlasSceneNode(Ogre::SceneNode *textureAtlasSceneNode);
Note: See TracChangeset
for help on using the changeset viewer.