class: ewol::resource::Texture


Description:



Constructor and Destructor:

#                        Texture                  ();
+ virtual ~Texture ();

Synopsis:

# egami::Image   m_data;
# GLuint m_texId;
# vec2 m_endPointSize;
# bool m_loaded;
+ void updateContext ();
+ void removeContext ();
+ void removeContextToLate ();
+ GLuint getId () const;
+ const vec2 & getUsableSize () const;
+ const ivec2 & getOpenGlSize () const;
# void init (const std::string & _filename);
# void init ();
+ DECLARE_RESOURCE_FACTORY (Texture );
+ void setImageSize (ivec2 newSize);
+ egami::Image & get ();
+ void flush ();

Object Hierarchy:

+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> ewol::resource::Texture
+--> ewol::resource::ImageDF
+--> ewol::resource::TexturedFont
+--> ewol::resource::TextureFile
+--> ewol::resource::DistanceFieldFont

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 ();
Call when need to send data on the harware (openGL)
Note: This is done asynchronously with the create of the Resource.


removeContext

+ void removeContext ();
The current OpenGl context is removing ==> remove yout own system data


removeContextToLate

+ void removeContextToLate ();
The notification of the Context removing is too late, we have no more acces on the OpenGl context (thank you Android). Juste update your internal state


getId

+ GLuint getId () const;



getUsableSize

+ const vec2 & getUsableSize () const;



getOpenGlSize

+ const ivec2 & getOpenGlSize () const;



init

# void init (const std::string & _filename);



init

# void init ();



Texture

#  Texture ();



DECLARE_RESOURCE_FACTORY

+  DECLARE_RESOURCE_FACTORY (Texture );



~Texture

+ virtual  ~Texture ();



setImageSize

+ void setImageSize (ivec2 newSize);



get

+ egami::Image & get ();



flush

+ void flush ();