arsa
2.7
include
irrlicht
SVertexIndex.h
Go to the documentation of this file.
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
11
namespace
irr
12
{
13
namespace
video
14
{
15
enum
E_INDEX_TYPE
16
{
17
EIT_16BIT
= 0,
18
EIT_32BIT
19
};
20
21
22
/*
24
template <class T>
25
struct SSpecificVertexIndex
26
{
27
T Index;
28
30
SSpecificVertexIndex() {}
31
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
71
typedef u32 SVertexIndex;
72
*/
73
74
75
}
// end namespace video
76
}
// end namespace irr
77
78
#endif
79
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition:
CARSADPad.h:6
irr::video::E_INDEX_TYPE
E_INDEX_TYPE
Definition:
SVertexIndex.h:15
irr::video::EIT_16BIT
Definition:
SVertexIndex.h:17
irr::video::EIT_32BIT
Definition:
SVertexIndex.h:18
irrTypes.h
Generated on Thu Nov 9 2023 23:47:37 for arsa by
1.8.15