Image.hpp
Go to the documentation of this file.
const T & x() const
Image(const std::string &_imageName="", bool _df=false, int32_t _size=ewol::compositing::Image::sizeAuto)
generic constructor
void printPart(const vec2 &_size, const vec2 &_sourcePosStart, const vec2 &_sourcePosStop)
add a part of the image to display with the requested size
void draw(bool _disableDepthTest=true)
draw All the refistered text in the current element on openGL
bool getDistanceFieldMode() const
Get the render methode.
Definition: Image.hpp:184
void setClipping(const vec3 &_pos, vec3 _posEnd)
Request a clipping area for the text (next draw only)
void setClippingMode(bool _newMode)
enable/Disable the clipping (without lose the current clipping position)
Definition: Image.hpp:130
void setRelPos(const vec3 &_pos)
set relative position for the next text writen
Definition: Image.hpp:93
void setSource(const std::string &_newFile, int32_t _size=32)
change the image Source == > can not be done to display 2 images at the same time ...
Definition: Image.hpp:160
bool hasSources()
Sometimes the user declare an image but not allocate the ressources all the time, this is to know it ...
void setColor(const etk::Color<> &_color)
set the Color of the current foreground font
Definition: Image.hpp:103
Definition: Area.hpp:16
const T & y() const
Definition: Compositing.hpp:13
Definition: Image.hpp:16
const vec3 & getPos()
get the current display position (sometime needed in the gui control)
Definition: Image.hpp:76
void setAngle(float _angleRad)
set a unique rotation of this element (not set in the rotate Generic system)
void setDistanceFieldMode(bool _mode)
Set render mode of the image.
void setPos(const vec3 &_pos)
set position for the next text writen
Definition: Image.hpp:83
vec2 getRealSize()
get the source image registered size in the file (<0 when multiple size image)
void print(const ivec2 &_size)
add a compleate of the image to display with the requested size
Definition: Image.hpp:142
void setClippingWidth(const vec3 &_pos, vec3 _width)
Request a clipping area for the text (next draw only)
Definition: Image.hpp:111