source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/IMGTextureAtlas.cpp @ 721

Revision 721, 912 bytes checked in by igarcia, 19 years ago (diff)
Line 
1
2#include "IMGTextureAtlas.h"
3
4namespace IMG {
5
6    TextureAtlas::TextureAtlas()
7        {
8        }
9
10    virtual TextureAtlas::~TextureAtlas()
11        {
12        }
13
14    void TextureAtlas::setRenderSourceName(Ogre::String renderSourceName)
15        {
16                mRenderSourceName = renderSourceName;
17        }
18
19    Ogre::String TextureAtlas::getRenderSourceName()
20        {
21                return mRenderSourceName;
22        }
23
24        void TextureAtlas::setRenderSourceName(Ogre::String renderSourceName)
25        {
26                mRenderSourceName = renderSourceName;
27        }
28
29        void TextureAtlas::addTexture(Texture *texture)
30        {
31                mTextureList.push_back(texture);
32        }
33
34        void TextureAtlas::getTexture(unsigned int iTexture)
35        {
36                return mTextureList[iTexture];
37        }
38
39        void TextureAtlas::removeTexture(unsigned int iTexture)
40        {
41                Texture *texture = mTextureList[iTexture];
42                mTextureList.erase(mTextureList.begin()+iTexture);
43                delete texture;
44        }
45
46        unsigned int TextureAtlas::getNumTextures()
47        {
48                return mTextureList.size();
49        }
50}
Note: See TracBrowser for help on using the repository browser.