class: ewol::resource::TextureFile
Description:
Constructor and Destructor:
# TextureFile ();
+ virtual ~TextureFile ();
Synopsis:
# void init ();
# void init (std::string _genName,
const std::string & _fileName,
const ivec2 & _size);
+ const vec2 & getRealSize ();
+ std::shared_ptr<ewol::resource::TextureFile> create (const std::string & _filename,
ivec2 _size);
Object Hierarchy:
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> +ewol::resource::Texture
+--> ewol::resource::TextureFile
Detail:
TextureFile
# TextureFile ();
init
# void init ();
init
# void init (std::string _genName,
const std::string & _fileName,
const ivec2 & _size);
~TextureFile
+ virtual ~TextureFile ();
getRealSize
+ const vec2 & getRealSize ();
create
+ std::shared_ptr<ewol::resource::TextureFile> create (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 nullptr if an error occured.
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> +ewol::resource::Texture
+--> ewol::resource::TextureFile
Detail:
TextureFile
# TextureFile ();
init
# void init ();
init
# void init (std::string _genName,
const std::string & _fileName,
const ivec2 & _size);
~TextureFile
+ virtual ~TextureFile ();
getRealSize
+ const vec2 & getRealSize ();
create
+ std::shared_ptr<ewol::resource::TextureFile> create (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 nullptr if an error occured. |