diff options
author | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
commit | 959831f4ef5a3e797f576c3de08cd65032c997ad (patch) | |
tree | e7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/include/SVertexIndex.h | |
parent | Add info about changes to Irrlicht. (diff) | |
download | SledjHamr-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 '')
-rw-r--r-- | libraries/irrlicht-1.8/include/SVertexIndex.h | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/libraries/irrlicht-1.8/include/SVertexIndex.h b/libraries/irrlicht-1.8/include/SVertexIndex.h index d6837dc..bc775ec 100644 --- a/libraries/irrlicht-1.8/include/SVertexIndex.h +++ b/libraries/irrlicht-1.8/include/SVertexIndex.h | |||
@@ -1,79 +1,79 @@ | |||
1 | // Copyright (C) 2008-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2008-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __S_VERTEX_INDEX_H_INCLUDED__ | 5 | #ifndef __S_VERTEX_INDEX_H_INCLUDED__ |
6 | #define __S_VERTEX_INDEX_H_INCLUDED__ | 6 | #define __S_VERTEX_INDEX_H_INCLUDED__ |
7 | 7 | ||
8 | #include "irrTypes.h" | 8 | #include "irrTypes.h" |
9 | 9 | ||
10 | 10 | ||
11 | namespace irr | 11 | namespace irr |
12 | { | 12 | { |
13 | namespace video | 13 | namespace video |
14 | { | 14 | { |
15 | enum E_INDEX_TYPE | 15 | enum E_INDEX_TYPE |
16 | { | 16 | { |
17 | EIT_16BIT = 0, | 17 | EIT_16BIT = 0, |
18 | EIT_32BIT | 18 | EIT_32BIT |
19 | }; | 19 | }; |
20 | 20 | ||
21 | 21 | ||
22 | /* | 22 | /* |
23 | //! vertex index used by the Irrlicht engine. | 23 | //! vertex index used by the Irrlicht engine. |
24 | template <class T> | 24 | template <class T> |
25 | struct SSpecificVertexIndex | 25 | struct SSpecificVertexIndex |
26 | { | 26 | { |
27 | T Index; | 27 | T Index; |
28 | 28 | ||
29 | //! default constructor | 29 | //! default constructor |
30 | SSpecificVertexIndex() {} | 30 | SSpecificVertexIndex() {} |
31 | 31 | ||
32 | //! constructor | 32 | //! constructor |
33 | SSpecificVertexIndex(u32 _index) :Index(_index) {} | 33 | SSpecificVertexIndex(u32 _index) :Index(_index) {} |
34 | 34 | ||
35 | bool operator==(const SSpecificVertexIndex& other) const | 35 | bool operator==(const SSpecificVertexIndex& other) const |
36 | { | 36 | { |
37 | return (Index == other.Index); | 37 | return (Index == other.Index); |
38 | } | 38 | } |
39 | 39 | ||
40 | bool operator!=(const SSpecificVertexIndex& other) const | 40 | bool operator!=(const SSpecificVertexIndex& other) const |
41 | { | 41 | { |
42 | return (Index != other.Index); | 42 | return (Index != other.Index); |
43 | } | 43 | } |
44 | 44 | ||
45 | bool operator<(const SSpecificVertexIndex& other) const | 45 | bool operator<(const SSpecificVertexIndex& other) const |
46 | { | 46 | { |
47 | return (Index < other.Index); | 47 | return (Index < other.Index); |
48 | } | 48 | } |
49 | 49 | ||
50 | SSpecificVertexIndex operator+(const u32& other) const | 50 | SSpecificVertexIndex operator+(const u32& other) const |
51 | { | 51 | { |
52 | return SSpecificVertexIndex(Index + other); | 52 | return SSpecificVertexIndex(Index + other); |
53 | } | 53 | } |
54 | 54 | ||
55 | operator const u32() const | 55 | operator const u32() const |
56 | { | 56 | { |
57 | return (const u32)Index; | 57 | return (const u32)Index; |
58 | } | 58 | } |
59 | 59 | ||
60 | E_INDEX_TYPE getType() const | 60 | E_INDEX_TYPE getType() const |
61 | { | 61 | { |
62 | if (sizeof(T)==sizeof(u16)) | 62 | if (sizeof(T)==sizeof(u16)) |
63 | return video::EIT_16BIT; | 63 | return video::EIT_16BIT; |
64 | return video::EIT_32BIT; | 64 | return video::EIT_32BIT; |
65 | } | 65 | } |
66 | 66 | ||
67 | }; | 67 | }; |
68 | 68 | ||
69 | //typedef SSpecificVertexIndex<u16> SVertexIndex; | 69 | //typedef SSpecificVertexIndex<u16> SVertexIndex; |
70 | 70 | ||
71 | typedef u32 SVertexIndex; | 71 | typedef u32 SVertexIndex; |
72 | */ | 72 | */ |
73 | 73 | ||
74 | 74 | ||
75 | } // end namespace video | 75 | } // end namespace video |
76 | } // end namespace irr | 76 | } // end namespace irr |
77 | 77 | ||
78 | #endif | 78 | #endif |
79 | 79 | ||