root/OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/expControlRecords.cpp @ 9890

Revision 8003, 1.2 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#include "FltExportVisitor.h"
18#include "DataOutputStream.h"
19#include "Opcodes.h"
20
21
22namespace flt
23{
24
25
26void
27FltExportVisitor::writePush()
28{
29    _records->writeInt16( (int16) PUSH_LEVEL_OP );
30    _records->writeInt16( 4 );
31}
32
33void
34FltExportVisitor::writePop()
35{
36    _records->writeInt16( (int16) POP_LEVEL_OP );
37    _records->writeInt16( 4 );
38}
39
40void
41FltExportVisitor::writePushSubface()
42{
43    _records->writeInt16( (int16) PUSH_SUBFACE_OP );
44    _records->writeInt16( 4 );
45}
46
47void
48FltExportVisitor::writePopSubface()
49{
50    _records->writeInt16( (int16) POP_SUBFACE_OP );
51    _records->writeInt16( 4 );
52}
53
54
55}
Note: See TracBrowser for help on using the browser.