Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/util/MultiType.h @ 1052

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

merged core2 back to trunk
there might be some errors, wasn't able to test it yet due to some strange g++ and linker behaviour.

File size: 1.9 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_void,
38    MT_int,
39    MT_uint,
40    MT_char,
41    MT_uchar,
42    MT_short,
43    MT_ushort,
44    MT_long,
45    MT_ulong,
46    MT_float,
47    MT_double,
48    MT_longdouble,
49    MT_bool,
50    MT_constchar,
51    MT_string,
52    MT_xmlelement,
53    MT_vector2,
54    MT_vector3,
55    MT_colourvalue,
56    MT_quaternion,
57    MT_degree,
58    MT_radian
59};
60
61union _UtilExport MultiTypeValue
62{
63    void*           void_;
64    int             int_;
65    unsigned int    uint_;
66    char            char_;
67    unsigned char   uchar_;
68    short           short_;
69    unsigned short  ushort_;
70    long            long_;
71    unsigned long   ulong_;
72    float           float_;
73    double          double_;
74    long double     longdouble_;
75    bool            bool_;
76};
77
78#endif /* _MultiType_H__ */
Note: See TracBrowser for help on using the repository browser.