|
Revision 13041, 1.4 kB
(checked in by robert, 14 months ago)
|
|
Ran script to remove trailing spaces and tabs
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 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 | |
|---|
| 25 | namespace osg { |
|---|
| 26 | class Texture2D; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | namespace flt |
|---|
| 31 | { |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | class DataOutputStream; |
|---|
| 35 | class FltExportVisitor; |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | class TexturePaletteManager |
|---|
| 39 | { |
|---|
| 40 | public: |
|---|
| 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 | |
|---|
| 47 | protected: |
|---|
| 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 |
|---|