- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ive/DataOutputStream.h
r10880 r13041 29 29 #include <osg/ref_ptr> 30 30 31 namespace ive { 31 namespace ive { 32 32 33 33 class DataOutputStream{ … … 40 40 41 41 unsigned int getVersion() { return VERSION; } 42 42 43 43 void writeBool(bool b); 44 44 void writeChar(char c); 45 45 void writeUChar(unsigned char c); 46 46 void writeUShort(unsigned short s); 47 void writeShort(short s); 47 void writeShort(short s); 48 48 void writeUInt(unsigned int s); 49 49 void writeInt(int i); … … 70 70 void writeUIntArray(const osg::UIntArray* a); 71 71 void writeVec4ubArray(const osg::Vec4ubArray* a); 72 void writeVec2b(const osg::Vec2b& v); 73 void writeVec3b(const osg::Vec3b& v); 74 void writeVec4b(const osg::Vec4b& v); 75 72 void writeVec2b(const osg::Vec2b& v); 73 void writeVec3b(const osg::Vec3b& v); 74 void writeVec4b(const osg::Vec4b& v); 75 76 76 void writePackedFloatArray(const osg::FloatArray* a, float maxError); 77 77 78 78 void writeFloatArray(const osg::FloatArray* a); 79 79 void writeVec2Array(const osg::Vec2Array* a); … … 82 82 void writeVec2sArray(const osg::Vec2sArray* a); 83 83 void writeVec3sArray(const osg::Vec3sArray* a); 84 void writeVec4sArray(const osg::Vec4sArray* a); 84 void writeVec4sArray(const osg::Vec4sArray* a); 85 85 void writeVec2bArray(const osg::Vec2bArray* a); 86 86 void writeVec3bArray(const osg::Vec3bArray* a); … … 88 88 void writeVec2dArray(const osg::Vec2dArray* a); 89 89 void writeVec3dArray(const osg::Vec3dArray* a); 90 void writeVec4dArray(const osg::Vec4dArray* a); 90 void writeVec4dArray(const osg::Vec4dArray* a); 91 91 void writeMatrixf(const osg::Matrixf& mat); 92 92 void writeMatrixd(const osg::Matrixd& mat); … … 161 161 std::ostream* _output_ostream; 162 162 std::string _filename; // not necessary, but optional for use in texture export 163 163 164 164 std::stringstream _compressionStream; 165 165 int _compressionLevel;
