class: ewol::resource::TextureFile
Description:
Synopsis:
+ const vec2 & getRealSize (void );
+ ewol::resource::TextureFile* keep (const std::string & _filename,
ivec2 _size);
+ void release (ewol::resource::TextureFile* & _object);
Object Hierarchy:
+ewol::Object
+--> +ewol::Resource
+--> +ewol::resource::Texture
+--> ewol::resource::TextureFile
Detail:
getRealSize
+ const vec2 & getRealSize (void );
keep
+ ewol::resource::TextureFile* keep (const std::string & _filename,
ivec2 _size);
keep the resource pointer.
Note: 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.
release
+ void release (ewol::resource::TextureFile* & _object);
release the keeped resources
Parameter [input] [output]: reference on the object pointer
+ewol::Object
+--> +ewol::Resource
+--> +ewol::resource::Texture
+--> ewol::resource::TextureFile
Detail:
getRealSize
+ const vec2 & getRealSize (void );
keep
+ ewol::resource::TextureFile* keep (const std::string & _filename,keep the resource pointer.
ivec2 _size);
Note: 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. |
release
+ void release (ewol::resource::TextureFile* & _object);release the keeped resources
Parameter [input] [output]: | reference | on the object pointer |