Class: ewol::resource::Texture
Constructor and Destructor:
# Texture (const std::string & _filename);
# Texture (void);
# ~Texture (void);
Synopsis:
+ void updateContext (void);
+ void removeContext (void);
+ void removeContextToLate (void);
+ GLuint getId (void);
+ vec2 getUsableSize (void);
+ void setImageSize (ivec2 newSize);
+ egami::Image & get (void);
+ void flush (void);
+ static ewol::resource::Texture * keep (void);
+ static void release (ewol::resource::Texture * & _object);
Object Hierarchy:
ewol::Object +--> ewol::Resource +--> ewol::resource::Texture +--> ewol::resource::TextureFile +--> ewol::resource::TexturedFont
Detail:
updateContext ()
void updateContext(void);
removeContext ()
void removeContext(void);
removeContextToLate ()
void removeContextToLate(void);
getId ()
GLuint getId(void);
getUsableSize ()
vec2 getUsableSize(void);
setImageSize ()
void setImageSize(ivec2 newSize);
get ()
egami::Image & get(void);
flush ()
void flush(void);
ewol::resource::keep ()
static ewol::resource::Texture * keep(void);
keep the resource pointer.
Notes: Never free this pointer by your own...
Return: pointer on the resource or NULL if an error occured.
ewol::resource::release ()
static void release(ewol::resource::Texture * & _object);
release the keeped resources
Parameter [input] [output]: reference on the object pointer
ewol::resource::Texture ()
Texture(const std::string & _filename);
ewol::resource::Texture ()
Texture(void);
ewol::resource::~Texture ()
~Texture(void);
updateContext ()
void updateContext(void);
removeContext ()
void removeContext(void);
removeContextToLate ()
void removeContextToLate(void);
getId ()
GLuint getId(void);
getUsableSize ()
vec2 getUsableSize(void);
setImageSize ()
void setImageSize(ivec2 newSize);
get ()
egami::Image & get(void);
flush ()
void flush(void);
ewol::resource::keep ()
static ewol::resource::Texture * keep(void);
keep the resource pointer.
Notes: Never free this pointer by your own...
-
Return: pointer on the resource or NULL if an error occured.
ewol::resource::release ()
static void release(ewol::resource::Texture * & _object);
release the keeped resources
-
Parameter [input] [output]: reference on the object pointer
ewol::resource::Texture ()
Texture(const std::string & _filename);
ewol::resource::Texture ()
Texture(void);
ewol::resource::~Texture ()
~Texture(void);