source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/LBBC/LBBCEntityTextureAtlasViewMode.h @ 751

Revision 751, 1.4 KB checked in by igarcia, 19 years ago (diff)
Line 
1#ifndef _LBBCENTITYTEXTUREATLASVIEWMODE_H
2#define _LBBCENTITYTEXTUREATLASVIEWMODE_H
3
4#include <LBBCPrerequisites.h>
5#include <IMG.h>
6#include <OBAOgreFrameListenerMode.h>
7
8namespace LBBC {
9
10class _BBCExport EntityTextureAtlasViewMode : public OBA::OgreFrameListenerMode
11{
12        protected:
13                Ogre::SceneNode* mTextureAtlasNode;
14
15                IMG::TextureAtlasPtr mTextureAtlas;
16
17                unsigned int mFrame;
18
19                bool mTextureAtlasGenerated;
20
21                unsigned int mBitRange;
22
23                Ogre::PixelFormat mSrcPixelFormat;
24
25                Ogre::PixelFormat mDestPixelFormat;
26
27                Ogre::String mTextureName;
28
29                Ogre::String mTextureAtlasName;
30
31                Ogre::String mTextureAtlasFolder;
32
33                unsigned int mTextureAtlasSize;
34
35                unsigned int mNumSamples;
36
37        public:
38                EntityTextureAtlasViewMode(Ogre::RenderWindow* win, unsigned int ogreFrameListenerModeHandle, bool useBufferedInputKeys = false, bool useBufferedInputMouse = false);
39
40                virtual ~EntityTextureAtlasViewMode();         
41
42                virtual bool frameStarted(const Ogre::FrameEvent& evt, Ogre::InputReader *inputReader);
43
44                virtual void createScene();
45
46                virtual void destroyScene();
47
48                void setTextureAtlasBitRange(unsigned int bitRange);
49
50                void setTextureAtlasNumSamples(unsigned int numSamples);
51
52                void setTextureName(Ogre::String textureName);
53
54                void setTextureAtlasName(Ogre::String textureAtlasName);
55
56                void setTextureAtlasFolder(Ogre::String textureAtlasFolder);
57
58                void setTextureAtlasSize(unsigned int size);
59};
60
61}
62#endif
Note: See TracBrowser for help on using the repository browser.