ewol::compositing::Sprite Class Reference
Inheritance diagram for ewol::compositing::Sprite:
ewol::compositing::Image ewol::Compositing

Public Member Functions

 Sprite (const std::string &_imageName, const ivec2 &_nbSprite, int32_t _size=ewol::compositing::Image::sizeAuto)
 
void printSprite (const ivec2 &_spriteID, const vec2 &_size)
 
void printSprite (const ivec2 &_spriteID, const vec3 &_size)
 
- Public Member Functions inherited from ewol::compositing::Image
 Image (const std::string &_imageName="", bool _df=false, int32_t _size=ewol::compositing::Image::sizeAuto)
 
virtual ~Image ()
 
void draw (bool _disableDepthTest=true)
 
void clear ()
 
const vec3getPos ()
 
void setPos (const vec3 &_pos)
 
void setPos (const vec2 &_pos)
 
void setRelPos (const vec3 &_pos)
 
void setRelPos (const vec2 &_pos)
 
void setColor (const etk::Color<> &_color)
 
void setClippingWidth (const vec3 &_pos, vec3 _width)
 
void setClippingWidth (const vec2 &_pos, const vec2 &_width)
 
void setClipping (const vec3 &_pos, vec3 _posEnd)
 
void setClipping (const vec2 &_pos, const vec2 &_posEnd)
 
void setClippingMode (bool _newMode)
 
void setAngle (float _angleRad)
 
void print (const ivec2 &_size)
 
void print (const vec2 &_size)
 
void printPart (const vec2 &_size, const vec2 &_sourcePosStart, const vec2 &_sourcePosStop)
 
void setSource (const std::string &_newFile, int32_t _size=32)
 
void setSource (const std::string &_newFile, const vec2 &_size)
 
bool hasSources ()
 
vec2 getRealSize ()
 
void setDistanceFieldMode (bool _mode)
 
bool getDistanceFieldMode () const
 
- Public Member Functions inherited from ewol::Compositing
 Compositing ()
 
virtual ~Compositing ()
 
virtual void resetMatrix ()
 
virtual void translate (const vec3 &_vect)
 
virtual void rotate (const vec3 &_vect, float _angle)
 
virtual void scale (const vec3 &_vect)
 
virtual void setMatrix (const mat4 &_mat)
 

Protected Attributes

ivec2 m_nbSprite
 
vec2 m_unitarySpriteSize
 
- Protected Attributes inherited from ewol::Compositing
mat4 m_matrixApply
 

Additional Inherited Members

- Static Public Attributes inherited from ewol::compositing::Image
static const int32_t sizeAuto
 

Member Data Documentation

§ m_nbSprite

ivec2 ewol::compositing::Sprite::m_nbSprite
protected

number of sprite in vertical and horizontal

§ m_unitarySpriteSize

vec2 ewol::compositing::Sprite::m_unitarySpriteSize
protected

size of a unique sprite


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