*/
#include <cmath>
+#include <msp/gbase/image.h>
#include "except.h"
#include "extension.h"
-#include "ilwrap.h"
#include "texture3d.h"
#include "version_1_2.h"
void Texture3D::load_image(const string &fn, int dp)
{
- Image img;
+ Graphics::Image img;
img.load_file(fn);
unsigned w=img.get_width();
else if(dp>0)
d=dp;
- PixelFormat fmt=img.get_format();
+ PixelFormat fmt=pixelformat_from_graphics(img.get_format());
if(width==0)
storage(fmt, w, h, d, 0);
else if(w!=width || h!=height || d!=depth)