mirror of https://github.com/axmolengine/axmol.git
remove unneeded codes
This commit is contained in:
parent
564d81017f
commit
1cbe29071b
|
@ -518,18 +518,6 @@ void Texture2D::setShaderProgram(GLProgram* shaderProgram)
|
||||||
_shaderProgram = shaderProgram;
|
_shaderProgram = shaderProgram;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Texture2D::releaseData(void *data)
|
|
||||||
{
|
|
||||||
free(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
void* Texture2D::keepData(void *data, unsigned int length)
|
|
||||||
{
|
|
||||||
CC_UNUSED_PARAM(length);
|
|
||||||
//The texture data mustn't be saved because it isn't a mutable texture.
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Texture2D::hasPremultipliedAlpha() const
|
bool Texture2D::hasPremultipliedAlpha() const
|
||||||
{
|
{
|
||||||
return _hasPremultipliedAlpha;
|
return _hasPremultipliedAlpha;
|
||||||
|
|
|
@ -203,17 +203,6 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual std::string getDescription() const;
|
virtual std::string getDescription() const;
|
||||||
|
|
||||||
/** These functions are needed to create mutable textures
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
void releaseData(void *data);
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
void* keepData(void *data, unsigned int length);
|
|
||||||
|
|
||||||
/** Initializes with a texture2d with data
|
/** Initializes with a texture2d with data
|
||||||
* @js NA
|
* @js NA
|
||||||
* @lua NA
|
* @lua NA
|
||||||
|
|
Loading…
Reference in New Issue