aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CGUIImageList.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CGUIImageList.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CGUIImageList.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CGUIImageList.h136
1 files changed, 68 insertions, 68 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUIImageList.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUIImageList.h
index 18221c8..488683f 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CGUIImageList.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CGUIImageList.h
@@ -1,68 +1,68 @@
1// This file is part of the "Irrlicht Engine". 1// This file is part of the "Irrlicht Engine".
2// written by Reinhard Ostermeier, reinhard@nospam.r-ostermeier.de 2// written by Reinhard Ostermeier, reinhard@nospam.r-ostermeier.de
3 3
4#ifndef __C_GUI_IMAGE_LIST_H_INCLUDED__ 4#ifndef __C_GUI_IMAGE_LIST_H_INCLUDED__
5#define __C_GUI_IMAGE_LIST_H_INCLUDED__ 5#define __C_GUI_IMAGE_LIST_H_INCLUDED__
6 6
7#include "IGUIImageList.h" 7#include "IGUIImageList.h"
8#include "IVideoDriver.h" 8#include "IVideoDriver.h"
9 9
10namespace irr 10namespace irr
11{ 11{
12namespace gui 12namespace gui
13{ 13{
14 14
15class CGUIImageList : public IGUIImageList 15class CGUIImageList : public IGUIImageList
16{ 16{
17public: 17public:
18 18
19 //! constructor 19 //! constructor
20 CGUIImageList( video::IVideoDriver* Driver ); 20 CGUIImageList( video::IVideoDriver* Driver );
21 21
22 //! destructor 22 //! destructor
23 virtual ~CGUIImageList(); 23 virtual ~CGUIImageList();
24 24
25 //! Creates the image list from texture. 25 //! Creates the image list from texture.
26 //! \param texture: The texture to use 26 //! \param texture: The texture to use
27 //! \param imageSize: Size of a single image 27 //! \param imageSize: Size of a single image
28 //! \param useAlphaChannel: true if the alpha channel from the texture should be used 28 //! \param useAlphaChannel: true if the alpha channel from the texture should be used
29 //! \return 29 //! \return
30 //! true if the image list was created 30 //! true if the image list was created
31 bool createImageList( 31 bool createImageList(
32 video::ITexture* texture, 32 video::ITexture* texture,
33 core::dimension2d<s32> imageSize, 33 core::dimension2d<s32> imageSize,
34 bool useAlphaChannel ); 34 bool useAlphaChannel );
35 35
36 //! Draws an image and clips it to the specified rectangle if wanted 36 //! Draws an image and clips it to the specified rectangle if wanted
37 //! \param index: Index of the image 37 //! \param index: Index of the image
38 //! \param destPos: Position of the image to draw 38 //! \param destPos: Position of the image to draw
39 //! \param clip: Optional pointer to a rectalgle against which the text will be clipped. 39 //! \param clip: Optional pointer to a rectalgle against which the text will be clipped.
40 //! If the pointer is null, no clipping will be done. 40 //! If the pointer is null, no clipping will be done.
41 virtual void draw( s32 index, const core::position2d<s32>& destPos, 41 virtual void draw( s32 index, const core::position2d<s32>& destPos,
42 const core::rect<s32>* clip = 0 ); 42 const core::rect<s32>* clip = 0 );
43 43
44 //! Returns the count of Images in the list. 44 //! Returns the count of Images in the list.
45 //! \return Returns the count of Images in the list. 45 //! \return Returns the count of Images in the list.
46 virtual s32 getImageCount() const 46 virtual s32 getImageCount() const
47 { return ImageCount; } 47 { return ImageCount; }
48 48
49 //! Returns the size of the images in the list. 49 //! Returns the size of the images in the list.
50 //! \return Returns the size of the images in the list. 50 //! \return Returns the size of the images in the list.
51 virtual core::dimension2d<s32> getImageSize() const 51 virtual core::dimension2d<s32> getImageSize() const
52 { return ImageSize; } 52 { return ImageSize; }
53 53
54private: 54private:
55 55
56 video::IVideoDriver* Driver; 56 video::IVideoDriver* Driver;
57 video::ITexture* Texture; 57 video::ITexture* Texture;
58 s32 ImageCount; 58 s32 ImageCount;
59 core::dimension2d<s32> ImageSize; 59 core::dimension2d<s32> ImageSize;
60 s32 ImagesPerRow; 60 s32 ImagesPerRow;
61 bool UseAlphaChannel; 61 bool UseAlphaChannel;
62}; 62};
63 63
64} // end namespace gui 64} // end namespace gui
65} // end namespace irr 65} // end namespace irr
66 66
67#endif 67#endif
68 68