root/OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Utils.h @ 9890

Revision 8003, 1.0 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/*
2 * This library is open source and may be redistributed and/or modified under
3 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or (at
4 * your option) any later version. The full license is in the LICENSE file
5 * included with this distribution, and on the openscenegraph.org website.
6 *
7 * This library is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * OpenSceneGraph Public License for more details.
11*/
12
13//
14// Copyright(c) 2008 Skew Matrix Software LLC.
15//
16
17#ifndef __FLTEXP_UTILS_H__
18#define __FLTEXP_UTILS_H__ 1
19
20
21// FLTEXP_DELETEFILE macro is used to delete temp files created during file export.
22// (Too bad OSG doesn't use Boost.)
23
24#if defined(_WIN32)
25
26    #include <windows.h>
27    #define FLTEXP_DELETEFILE(file) DeleteFile((file))
28
29#else   // Unix
30
31    #include <stdio.h>
32    #define FLTEXP_DELETEFILE(file) remove((file))
33
34#endif
35
36#endif
Note: See TracBrowser for help on using the browser.