+#include "devilloader.h"
#include <algorithm>
#include <msp/strings/format.h>
#include <IL/il.h>
-#include "devilloader.h"
using namespace std;
return reinterpret_cast<Msp::IO::Seekable *>(handle)->tell();
}
-std::string error_string(ILenum err)
+string error_string(ILenum err)
{
switch(err)
{
ilBindImage(id);
unsigned data_size = data.stride*data.height;
- data.pixels = new char[data_size];
ILubyte *il_data = ilGetData();
copy(il_data, il_data+data_size, data.pixels);