mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-17 13:24:57 +00:00
Remove commented-out code
This commit is contained in:
parent
0f39b825e1
commit
eb128e65a4
162 changed files with 2092 additions and 6594 deletions
|
@ -29,15 +29,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
//#include "pngLoad.h"
|
||||
//#include "jpeg/jpeglib.h"
|
||||
/*
|
||||
#include <il/il.h>
|
||||
#include <il/ilu.h>
|
||||
#include <il/ilut.h>
|
||||
*/
|
||||
|
||||
|
||||
#ifdef Z2D_J2K
|
||||
//..\j2k-codec\j2k-codec.lib
|
||||
|
||||
#include "..\j2k-codec\j2k-codec.h"
|
||||
#endif
|
||||
|
||||
|
@ -46,11 +41,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
GLint Texture::format = 0;
|
||||
bool Texture::useMipMaps = true;
|
||||
|
||||
/*
|
||||
#ifdef BBGE_BUILD_OPENGL
|
||||
#include "glext/glext.h"
|
||||
#endif
|
||||
*/
|
||||
|
||||
|
||||
Texture::Texture()
|
||||
|
@ -223,11 +213,7 @@ void Texture::reload()
|
|||
unload();
|
||||
load(loadName);
|
||||
|
||||
/*if (ow != -1 && oh != -1)
|
||||
{
|
||||
width = ow;
|
||||
height = oh;
|
||||
}*/
|
||||
|
||||
debugLog("DONE");
|
||||
}
|
||||
|
||||
|
@ -257,12 +243,7 @@ bool Texture::load(std::string file)
|
|||
pos = std::string::npos;
|
||||
}
|
||||
|
||||
/*if (core->debugLogTextures)
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << "pos [" << pos << "], file :" << file;
|
||||
debugLog(os.str());
|
||||
}*/
|
||||
|
||||
|
||||
bool found = exists(file);
|
||||
|
||||
|
@ -280,11 +261,7 @@ bool Texture::load(std::string file)
|
|||
file = localisePathInternalModpath(file);
|
||||
file = core->adjustFilenameCase(file);
|
||||
|
||||
/*
|
||||
std::ostringstream os;
|
||||
os << "Loading texture [" << file << "]";
|
||||
debugLog(os.str());
|
||||
*/
|
||||
|
||||
std::string post = file.substr(file.size()-3, 3);
|
||||
stringToLower(post);
|
||||
if (post == "png")
|
||||
|
@ -352,7 +329,7 @@ bool Texture::loadPNG(const std::string &file)
|
|||
pngInfo info;
|
||||
|
||||
int pngType = PNG_ALPHA;
|
||||
|
||||
|
||||
if (format != 0)
|
||||
{
|
||||
if (format == GL_LUMINANCE_ALPHA)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue