root/OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgPlugins/OpenFlight/Types.h @ 11264

Revision 8003, 1.4 kB (checked in by robert, 10 years ago)

From Paul Martz, "Here's the mods to the OpenFlight? plugin to support FLT export. The ZIP file contains the new .cpp/h files as well as existing files that I modified.


Changes to existing files:

ReaderWriter?.cpp -- to support writeNode() of course.
ReaderWriterATTR.cpp -- to support writeObject -- we write .attr files for textures, if they don't already exist.
AttrData?.cpp/.h -- Minor fixes.
CMakeLists.txt -- to include the new files in the build."


From Robert Osfield, port to non Windows platforms just required fixing of header capitilization errors
that windows lets through the net due to having a case insensitive file system.


Line 
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under 
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14//
15// OpenFlight® loader for OpenSceneGraph
16//
17//  Copyright (C) 2005-2007  Brede Johansen
18//
19
20#ifndef FLT_TYPES_H
21#define FLT_TYPES_H 1
22
23namespace flt {
24
25#if defined(_MSC_VER)
26
27typedef __int8              int8;
28typedef unsigned __int8     uint8;
29typedef __int16             int16;
30typedef unsigned __int16    uint16;
31typedef __int32             int32;     
32typedef unsigned __int32    uint32;     
33typedef float               float32;
34typedef double              float64;
35
36#else
37
38typedef signed char         int8;
39typedef unsigned char       uint8;
40typedef signed short        int16;
41typedef unsigned short      uint16;
42typedef signed int          int32;     
43typedef unsigned int        uint32;     
44typedef float               float32;
45typedef double              float64;
46
47#endif
48
49} // end namespace
50
51#endif
Note: See TracBrowser for help on using the browser.