root/OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/TexturePaletteManager.h @ 13041

Revision 13041, 1.4 kB (checked in by robert, 2 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
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_TEXTURE_PALETTE_MANAGER_H__
18#define __FLTEXP_TEXTURE_PALETTE_MANAGER_H__ 1
19
20
21#include "ExportOptions.h"
22#include <fstream>
23#include <map>
24
25namespace osg {
26    class Texture2D;
27}
28
29
30namespace flt
31{
32
33
34class DataOutputStream;
35class FltExportVisitor;
36
37
38class TexturePaletteManager
39{
40public:
41    TexturePaletteManager( const FltExportVisitor& nv, const ExportOptions& fltOpt );
42
43    int add( int unit, const osg::Texture2D* texture );
44
45    void write( DataOutputStream& dos ) const;
46
47protected:
48
49    TexturePaletteManager& operator = (const TexturePaletteManager&) { return *this; }
50
51    int _currIndex;
52
53    typedef std::map< const osg::Texture2D*, int > TextureIndexMap;
54    TextureIndexMap _indexMap;
55
56    const FltExportVisitor& _nv;
57
58    const ExportOptions& _fltOpt;
59
60};
61
62
63
64}
65
66#endif
Note: See TracBrowser for help on using the browser.