root/OpenSceneGraph/trunk/src/osgPlugins/lwo/lwo2types.h
@
13041
| Revision 13041, 0.9 kB (checked in by robert, 14 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | |
| 2 | /**************************************************************************** |
| 3 | |
| 4 | Basic data types used in LWO2 files |
| 5 | |
| 6 | Copyright (C) 2002-2003 Marco Jez |
| 7 | |
| 8 | ****************************************************************************/ |
| 9 | |
| 10 | #ifndef LWO2TYPES_ |
| 11 | #define LWO2TYPES_ |
| 12 | |
| 13 | #include <string> |
| 14 | |
| 15 | namespace lwo2 |
| 16 | { |
| 17 | |
| 18 | // basic types |
| 19 | |
| 20 | struct ID4 |
| 21 | { |
| 22 | ID4() |
| 23 | { |
| 24 | id[0] = 0; |
| 25 | id[1] = 0; |
| 26 | id[2] = 0; |
| 27 | id[3] = 0; |
| 28 | } |
| 29 | |
| 30 | char id[4]; |
| 31 | }; |
| 32 | |
| 33 | typedef signed char I1; |
| 34 | typedef signed short int I2; |
| 35 | typedef signed int I4; |
| 36 | typedef unsigned char U1; |
| 37 | typedef unsigned short int U2; |
| 38 | typedef unsigned int U4; |
| 39 | typedef float F4; |
| 40 | typedef std::string S0; |
| 41 | |
| 42 | // composite types |
| 43 | |
| 44 | struct VX { |
| 45 | U4 index; |
| 46 | }; |
| 47 | |
| 48 | struct COL12 { |
| 49 | F4 red; |
| 50 | F4 green; |
| 51 | F4 blue; |
| 52 | }; |
| 53 | |
| 54 | struct VEC12 { |
| 55 | F4 X; |
| 56 | F4 Y; |
| 57 | F4 Z; |
| 58 | }; |
| 59 | |
| 60 | struct FP4 { |
| 61 | F4 fraction; |
| 62 | }; |
| 63 | |
| 64 | struct ANG4 { |
| 65 | F4 radians; |
| 66 | }; |
| 67 | |
| 68 | struct FNAM0 { |
| 69 | S0 name; |
| 70 | }; |
| 71 | |
| 72 | } |
| 73 | |
| 74 | #endif |
Note: See TracBrowser
for help on using the browser.
