class: ewol::compositing::Drawing


Description:



Constructor and Destructor:

+                                                  Drawing            ();
+ virtual ~Drawing ();

Synopsis:

+ void                                     draw               (bool _disableDepthTest);
+ void clear ();
+ const vec3 & getPos ();
+ 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);
+ const etk::Color<> & getColor ();
+ void setColorBg (const etk::Color<> & _color);
+ const etk::Color<> & getColorBg ();
+ void setClippingWidth (const vec3 & _pos,
const vec3 & _width);
+ void setClippingWidth (const vec2 & _pos,
const vec2 & _width);
+ void setClipping (const vec3 & _pos,
const vec3 & _posEnd);
+ void setClipping (const vec2 & _pos,
const vec2 & _posEnd);
+ void setClippingMode (bool _newMode);
+ void setThickness (float _thickness);
+ void addVertex ();
+ void lineTo (const vec3 & _dest);
+ void lineTo (const vec2 & _dest);
+ void lineRel (const vec3 & _vect);
+ void lineRel (const vec2 & _vect);
+ void rectangle (const vec3 & _dest);
+ void rectangle (const vec2 & _dest);
+ void rectangleWidth (const vec3 & _size);
+ void rectangleWidth (const vec2 & _size);
+ void cube (const vec3 & _dest);
+ void circle (float _radius,
float _angleStart,
float _angleStop);

Object Hierarchy:

+ewol::Compositing
+--> ewol::compositing::Drawing

Detail:

Drawing

+  Drawing ();
Basic constructor


~Drawing

+ virtual  ~Drawing ();
Basic destructor


draw

+ void draw (bool _disableDepthTest);
draw All the refistered text in the current element on openGL


clear

+ void clear ();
clear alll tre registered element in the current element


getPos

+ const vec3 & getPos ();
get the current display position (sometime needed in the gui control)


setPos

+ void setPos (const vec3 & _pos);
set position for the next text writen


setPos

+ void setPos (const vec2 & _pos);



setRelPos

+ void setRelPos (const vec3 & _pos);
set relative position for the next text writen


setRelPos

+ void setRelPos (const vec2 & _pos);



setColor

+ void setColor (const etk::Color<> & _color);
set the Color of the current foreground font


getColor

+ const etk::Color<> & getColor ();
Get the foreground color of the font.


setColorBg

+ void setColorBg (const etk::Color<> & _color);
set the background color of the font (for selected Text (not the global BG))


getColorBg

+ const etk::Color<> & getColorBg ();
Get the background color of the font.


setClippingWidth

+ void setClippingWidth (const vec3 & _pos,
const vec3 & _width);
Request a clipping area for the text (next draw only)


setClippingWidth

+ void setClippingWidth (const vec2 & _pos,
const vec2 & _width);



setClipping

+ void setClipping (const vec3 & _pos,
const vec3 & _posEnd);
Request a clipping area for the text (next draw only)


setClipping

+ void setClipping (const vec2 & _pos,
const vec2 & _posEnd);



setClippingMode

+ void setClippingMode (bool _newMode);
enable/Disable the clipping (without lose the current clipping position)
_newMode The new status of the clipping


setThickness

+ void setThickness (float _thickness);
Specify the line thickness for the next elements


addVertex

+ void addVertex ();
add a point reference at the current position (this is a vertex reference at the current position


lineTo

+ void lineTo (const vec3 & _dest);
draw a line to a specific position


lineTo

+ void lineTo (const vec2 & _dest);



lineRel

+ void lineRel (const vec3 & _vect);
Relative drawing a line (spacial vector)


lineRel

+ void lineRel (const vec2 & _vect);



rectangle

+ void rectangle (const vec3 & _dest);
draw a 2D rectangle to the position requested.


rectangle

+ void rectangle (const vec2 & _dest);



rectangleWidth

+ void rectangleWidth (const vec3 & _size);
draw a 2D rectangle to the requested size.


rectangleWidth

+ void rectangleWidth (const vec2 & _size);



cube

+ void cube (const vec3 & _dest);
draw a 3D rectangle to the position requested.


circle

+ void circle (float _radius,
float _angleStart,
float _angleStop);
draw a 2D circle with the specify rafdius parameter.