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