Files
assimp/code/irrXML/irrXMLWrapper.h
aramis_acg ce6ce098e9 Removed aiProcess_FindDegenerates from the viewer. The step seems to cause some problems that have not yet been solved.
Added irrmesh (Irrlicht Mesh Format) loader to Assimp. Works quite stable, but no lightmapping support yet.
Removed tinyxml, replaced it with irrxml instead. Added an IOStreamToIrrXML wrapper.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@194 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2008-10-24 20:37:54 +00:00

46 lines
906 B
C++

#ifndef AI_IRRXML_WRAPPER_H_INCLUDED
#define AI_IRRXML_WRAPPER_H_INCLUDED
#include "irrXML.h"
#include "./../../include/IOStream.h"
namespace Assimp {
using namespace irr;
using namespace irr::io;
class CIrrXML_IOStreamReader
{
public:
CIrrXML_IOStreamReader(IOStream* _stream)
: stream (_stream)
{}
//! virtual destructor
virtual ~CIrrXML_IOStreamReader() {};
//! Reads an amount of bytes from the file.
/** \param buffer: Pointer to buffer where to read bytes will be written to.
\param sizeToRead: Amount of bytes to read from the file.
\return Returns how much bytes were read. */
virtual int read(void* buffer, int sizeToRead)
{
return (int)stream->Read(buffer,1,sizeToRead);
}
//! Returns size of file in bytes
virtual int getSize()
{
return (int)stream->FileSize();
}
private:
IOStream* stream;
};
} // ! Assimp
#endif