61 static Texture*
read2(
const string& texturePathName,
const string& textureFileName,
const string& transparencyTexturePathName,
const string& transparencyTextureFileName,
bool useCache =
true,
bool powerOfTwo =
true,
const string& idPrefix =
string());
PNG texture reader class.
static Texture * scale(Texture *texture, int width, int height, const string &idSuffix=":scaled")
Scale texture.
static STATIC_DLL_IMPEXT Mutex textureCacheMutex
static void removeFromCache(Texture *texture)
Remove texture from cache.
static STATIC_DLL_IMPEXT unordered_map< string, Texture * > textureCache
static const vector< string > & getTextureExtensions()
static Texture * read(const string &pathName, const string &fileName, bool useCache=true, bool powerOfTwo=true, const string &idPrefix=string())
Reads a texture.
static void scaleTextureLine(const ByteBuffer &pixelByteBuffer, ByteBuffer &pixelByteBufferScaled, int width, int textureWidth, int bytesPerPixel, int y)
Scales a texture line.
static Texture * read2(const string &texturePathName, const string &textureFileName, const string &transparencyTexturePathName, const string &transparencyTextureFileName, bool useCache=true, bool powerOfTwo=true, const string &idPrefix=string())
Reads a texture with additional transparency texture.
static Texture * smooth(Texture *texture, const string &idSuffix=":smoothed", float adjacentSampleWeight=0.05f)
Smooth texture.
static Texture * rotate(Texture *texture, float rotation, const string &idSuffix=":rotated")
Rotate texture around center.
static STATIC_DLL_IMPEXT vector< string > extensions