Class: ewol::TextureFile
Synopsis:
+ const char * getType (void);
+ const vec2 & getRealSize (void);
+ static ewol::TextureFile * keep (const std::string & _filename,
ivec2 _size);
+ static void release (ewol::TextureFile * & _object);
- TextureFile (const std::string & _genName);
- TextureFile (std::string _genName,
const std::string & _fileName,
const ivec2 & _size);
- ~TextureFile (void);
Object Hierarchy:
ewol::EObject +--> ewol::Resource +--> ewol::Texture +--> ewol::TextureFile
Detail:
getType ()
const char * getType(void);
getRealSize ()
const vec2 & getRealSize(void);
ewol::keep ()
static ewol::TextureFile * keep(const std::string & _filename,
ivec2 _size);
keep the resource pointer.
Notes: Never free this pointer by your own...
Parameter [input]: _filename Name of the image file.
Parameter [input]: _requested size of the image (usefull when loading .svg to automatic rescale)
Return: pointer on the resource or NULL if an error occured.
ewol::release ()
static void release(ewol::TextureFile * & _object);
release the keeped resources
Parameter [input] [output]: reference on the object pointer
ewol::TextureFile ()
TextureFile(const std::string & _genName);
ewol::TextureFile ()
TextureFile(std::string _genName,
const std::string & _fileName,
const ivec2 & _size);
ewol::~TextureFile ()
~TextureFile(void);
getType ()
const char * getType(void);
getRealSize ()
const vec2 & getRealSize(void);
ewol::keep ()
static ewol::TextureFile * keep(const std::string & _filename, ivec2 _size);
keep the resource pointer.
Notes: Never free this pointer by your own...
-
Parameter [input]: _filename Name of the image file.
Parameter [input]: _requested size of the image (usefull when loading .svg to automatic rescale)
Return: pointer on the resource or NULL if an error occured.
ewol::release ()
static void release(ewol::TextureFile * & _object);
release the keeped resources
-
Parameter [input] [output]: reference on the object pointer
ewol::TextureFile ()
TextureFile(const std::string & _genName);
ewol::TextureFile ()
TextureFile(std::string _genName, const std::string & _fileName, const ivec2 & _size);
ewol::~TextureFile ()
~TextureFile(void);