Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core/src/util/MultiType.h @ 792

Last change on this file since 792 was 792, checked in by landauf, 16 years ago

upload of the work i did before the exams (not yet finished nor working)

File size: 1.8 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *
4 *
5 *   License notice:
6 *
7 *   This program is free software; you can redistribute it and/or
8 *   modify it under the terms of the GNU General Public License
9 *   as published by the Free Software Foundation; either version 2
10 *   of the License, or (at your option) any later version.
11 *
12 *   This program is distributed in the hope that it will be useful,
13 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 *   GNU General Public License for more details.
16 *
17 *   You should have received a copy of the GNU General Public License
18 *   along with this program; if not, write to the Free Software
19 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20 *
21 *   Author:
22 *      Fabian 'x3n' Landau
23 *   Co-authors:
24 *      ...
25 *
26 *   Inspiration: MultiType by Benjamin Grauer
27 */
28
29#ifndef _MultiType_H__
30#define _MultiType_H__
31
32#include "UtilPrereqs.h"
33
34enum _UtilExport MultiType
35{
36    MT_null,
37    MT_int,
38    MT_uint,
39    MT_char,
40    MT_uchar,
41    MT_short,
42    MT_ushort,
43    MT_long,
44    MT_ulong,
45    MT_float,
46    MT_double,
47    MT_longdouble,
48    MT_bool,
49    MT_constchar,
50    MT_string,
51    MT_vector2,
52    MT_vector3,
53    MT_colourvalue,
54    MT_quaternion,
55    MT_degree,
56    MT_radian
57};
58
59union _UtilExport MultiTypeValue
60{
61    int             int_;
62    unsigned int    uint_;
63    char            char_;
64    unsigned char   uchar_;
65    short           short_;
66    unsigned short  ushort_;
67    long            long_;
68    unsigned long   ulong_;
69    float           float_;
70    double          double_;
71    long double     longdouble_;
72    bool            bool_;
73};
74
75#endif /* _MultiType_H__ */
Note: See TracBrowser for help on using the repository browser.