Improved the handling of endian swap of osg::Array
This commit is contained in:
@@ -22,7 +22,7 @@ public:
|
||||
void setStream( std::ostream* ostream ) { _out = ostream; }
|
||||
std::ostream* getStream() { return _out; }
|
||||
const std::ostream* getStream() const { return _out; }
|
||||
|
||||
|
||||
virtual bool isBinary() const = 0;
|
||||
|
||||
virtual void writeBool( bool b ) = 0;
|
||||
@@ -115,6 +115,8 @@ public:
|
||||
|
||||
void throwException( const std::string& msg );
|
||||
|
||||
void readComponentArray( char* s, unsigned int numElements, unsigned int numComponentsPerElements, unsigned int componentSizeInBytes);
|
||||
|
||||
protected:
|
||||
std::istream* _in;
|
||||
osgDB::InputStream* _inputStream;
|
||||
|
||||
Reference in New Issue
Block a user