Inheritance diagram for ewol::resource::ImageDF:
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::ImageDFcreate (const std::string &_filename, ivec2 _size=ivec2(-1,-1))
 

Protected Member Functions

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

Protected Attributes

vec2 m_realImageSize
 
- 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::ImageDF> ewol::resource::ImageDF::create ( const std::string &  _filename,
ivec2  _size = ivec2(-1,-1) 
)
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)
Returns
pointer on the resource or nullptr if an error occured.

§ generateDistanceField()

void ewol::resource::ImageDF::generateDistanceField ( const egami::ImageMono _input,
egami::Image _output 
)
protected

Generate distance field of this Image input.

Parameters
[in]_inputInput image to change in distance field mode.
[out]_outputNew image generate with this image _input.

The documentation for this class was generated from the following file: