Drawing.hpp
Go to the documentation of this file.
std::vector< etk::Color< float > > m_coordColor
internal color of the background
Definition: Drawing.hpp:34
const T & x() const
void setColorBg(const etk::Color<> &_color)
set the background color of the font (for selected Text (not the global BG))
Definition: Drawing.hpp:131
void cube(const vec3 &_dest)
draw a 3D rectangle to the position requested.
void clear()
clear alll tre registered element in the current element
void setClippingWidth(const vec3 &_pos, const vec3 &_width)
Request a clipping area for the text (next draw only)
Definition: Drawing.hpp:146
void circle(float _radius, float _angleStart=0, float _angleStop=2 *M_PI)
draw a 2D circle with the specify rafdius parameter.
Definition: Drawing.hpp:17
void rectangle(const vec3 &_dest)
draw a 2D rectangle to the position requested.
const vec3 & getPos()
get the current display position (sometime needed in the gui control)
Definition: Drawing.hpp:90
void setPos(const vec3 &_pos)
set position for the next text writen
Definition: Drawing.hpp:97
void lineRel(const vec3 &_vect)
Relative drawing a line (spacial vector)
Definition: Drawing.hpp:189
Definition: Area.hpp:16
void addVertex()
add a point reference at the current position (this is a vertex reference at the current position ...
const T & y() const
void setColor(const etk::Color<> &_color)
set the Color of the current foreground font
Definition: Drawing.hpp:117
std::vector< vec3 > m_coord
internal position for the text display
Definition: Drawing.hpp:33
void setRelPos(const vec3 &_pos)
set relative position for the next text writen
Definition: Drawing.hpp:107
Definition: Compositing.hpp:13
void draw(bool _disableDepthTest=true)
draw All the refistered text in the current element on openGL
const etk::Color & getColorBg()
Get the background color of the font.
Definition: Drawing.hpp:138
void setClippingMode(bool _newMode)
enable/Disable the clipping (without lose the current clipping position)
Definition: Drawing.hpp:165
void setThickness(float _thickness)
Specify the line thickness for the next elements.
void rectangleWidth(const vec3 &_size)
draw a 2D rectangle to the requested size.
Definition: Drawing.hpp:207
const etk::Color & getColor()
Get the foreground color of the font.
Definition: Drawing.hpp:124
void setClipping(const vec3 &_pos, const vec3 &_posEnd)
Request a clipping area for the text (next draw only)