class: ewol::resource::Texture
Description:
Constructor and Destructor:
# Texture (const std::string & _filename);
# Texture (void );
# ~Texture (void );
Synopsis:
# egami::Image m_data;
# GLuint m_texId;
# vec2 m_endPointSize;
# bool m_loaded;
+ 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 );
+ ewol::resource::Texture* keep (void );
+ void release (ewol::resource::Texture* & _object);
Object Hierarchy:
+ewol::Object
+--> +ewol::Resource
+--> ewol::resource::Texture
+--> ewol::resource::TexturedFont
+--> ewol::resource::TextureFile
Detail:
m_data
# egami::Image m_data;
m_texId
# GLuint m_texId;
m_endPointSize
# vec2 m_endPointSize;
m_loaded
# bool m_loaded;
updateContext
+ void updateContext (void );
removeContext
+ void removeContext (void );
removeContextToLate
+ void removeContextToLate (void );
getId
+ GLuint getId (void );
getUsableSize
+ vec2 getUsableSize (void );
Texture
# Texture (const std::string & _filename);
Texture
# Texture (void );
~Texture
# ~Texture (void );
setImageSize
+ void setImageSize (ivec2 newSize);
get
+ egami::Image & get (void );
flush
+ void flush (void );
keep
+ ewol::resource::Texture* keep (void );
keep the resource pointer.
Note: Never free this pointer by your own...
Return: | | pointer on the resource or NULL if an error occured. |
release
+ void release (ewol::resource::Texture* & _object);
release the keeped resources