Irrlicht 3D Engine
Loading...
Searching...
No Matches
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
11namespace irr
12{
13namespace video
14{
20
21
22/*
24template <class T>
25struct 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
71typedef u32 SVertexIndex;
72*/
73
74
75} // end namespace video
76} // end namespace irr
77
78#endif
79
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13