Inheritance diagram for ewol::resource::TextureFile:
ewol::resource::Texture

Public Member Functions

const vec2getRealSize ()
 
- Public Member Functions inherited from ewol::resource::Texture
 DECLARE_RESOURCE_FACTORY (Texture)
 
void setImageSize (ivec2 newSize)
 
egami::Imageget ()
 
void flush ()
 
bool updateContext ()
 
void removeContext ()
 
void removeContextToLate ()
 
const ivec2getOpenGlSize () const
 
uint32_t getRendererId () const
 

Static Public Member Functions

static ememory::SharedPtr< ewol::resource::TextureFilecreate (const std::string &_filename, ivec2 _size=ewol::resource::TextureFile::sizeAuto, ivec2 _sizeRegister=ewol::resource::TextureFile::sizeAuto)
 

Static Public Attributes

static const ivec2 sizeAuto
 
static const ivec2 sizeDefault
 

Protected Member Functions

void init ()
 
void init (std::string _genName, const std::string &_fileName, const ivec2 &_size)
 
- Protected Member Functions inherited from ewol::resource::Texture
void init (const std::string &_filename)
 
void init ()
 

Additional Inherited Members

- Protected Attributes inherited from ewol::resource::Texture
uint32_t m_texId
 
egami::Image m_data
 
vec2 m_endPointSize
 
bool m_loaded
 

Member Function Documentation

§ create()

static ememory::SharedPtr<ewol::resource::TextureFile> ewol::resource::TextureFile::create ( const std::string &  _filename,
ivec2  _size = ewol::resource::TextureFile::sizeAuto,
ivec2  _sizeRegister = ewol::resource::TextureFile::sizeAuto 
)
static

keep the resource pointer.

Note
Never free this pointer by your own...
Parameters
[in]_filenameName of the image file.
[in]_requestedsize of the image (usefull when loading .svg to automatic rescale)
[in]_sizeRegistersize register in named (When you preaload the images the size write here will be )
Returns
pointer on the resource or nullptr if an error occured.

The documentation for this class was generated from the following file:
  • framework/atria-soft/ewol/ewol/resource/Image.hpp