BlenderImporter();
~BlenderImporter();
-
public:
// --------------------
/// Read from stream
size_t Read(void* pvBuffer,
size_t pSize,
- size_t pCount);
+ size_t pCount) override;
// -------------------------------------------------------------------
/// Write to stream
size_t Write(const void* pvBuffer,
size_t pSize,
- size_t pCount);
+ size_t pCount) override;
// -------------------------------------------------------------------
/// Seek specific position
// -------------------------------------------------------------------
/// Get current seek position
- size_t Tell() const;
+ size_t Tell() const override;
// -------------------------------------------------------------------
/// Get size of file
- size_t FileSize() const;
+ size_t FileSize() const override;
// -------------------------------------------------------------------
/// Flush file contents
- void Flush();
+ void Flush() override;
private:
- // File datastructure, using clib
+ // File data-structure, using clib
FILE* mFile;
// Filename
std::string mFilename;
unsigned int jointNamesIndex;
bool addJointToJointNames = true;
- for (int idx_joint = 0; idx_joint < skinRef->jointNames.size(); ++idx_joint) {
+ for ( unsigned int idx_joint = 0; idx_joint < skinRef->jointNames.size(); ++idx_joint) {
if (skinRef->jointNames[idx_joint]->jointName.compare(nodeRef->jointName) == 0) {
addJointToJointNames = false;
jointNamesIndex = idx_joint;
// Create the Accessor for skinRef->inverseBindMatrices
if (createSkin) {
mat4* invBindMatrixData = new mat4[inverseBindMatricesData.size()];
- for (int idx_joint = 0; idx_joint < inverseBindMatricesData.size(); ++idx_joint) {
+ for ( unsigned int idx_joint = 0; idx_joint < inverseBindMatricesData.size(); ++idx_joint) {
CopyValue(inverseBindMatricesData[idx_joint], invBindMatrixData[idx_joint]);
}
}
TestDefaultIOStream( FILE* pFile, const std::string &strFilename )
- : DefaultIOStream( pFile, strFilename ) {
+ : DefaultIOStream( pFile, strFilename ) {
// empty
}
EXPECT_EQ( 26, myBuffer.cacheSize() );
TestDefaultIOStream myStream( fs, buffer );
-
+ size_t size( myStream.FileSize() );
+ size_t numBlocks( size / myBuffer.cacheSize() );
EXPECT_TRUE( myBuffer.open( &myStream ) );
-
- EXPECT_EQ( 10, myBuffer.getNumBlocks() );
+ EXPECT_EQ( numBlocks, myBuffer.getNumBlocks() );
EXPECT_TRUE( myBuffer.close() );
}