/*
Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
#include "gamegl.h"
#include "Texture.h"
-#include "TGALoader.h"
+#include "ImageIO.h"
using namespace std;
-extern TGAImageRec texture;
+extern ImageRec texture;
extern bool trilinear;
{
//load image into 'texture' global var
if (!skindata) {
- unsigned char filenamep[256];
- CopyCStringToPascal(ConvertFileName(filename.c_str()), filenamep);
- upload_image(filenamep, hasAlpha);
+ upload_image(ConvertFileName(filename.c_str()));
}
skinsize = texture.sizeX;
}
-
-
void Texture::load(const string& filename, bool hasMipmap, bool hasAlpha)
{
destroy();