ewol/doc/ewol__Drawing.html

506 lines
27 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>ewol Library</title>
<link rel="stylesheet" href="base.css">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="container">
<h1>ewol Library</h1>
<li><a href="eSystemMessage.html">eSystemMessage</a></li>
<li>ewol</li>
<ul>
<li><a href="ewol__Area.html">Area</a></li>
<li><a href="ewol__Colored3DObject.html">Colored3DObject</a></li>
<li><a href="ewol__CommandLine.html">CommandLine</a></li>
<li><a href="ewol__Compositing.html">Compositing</a></li>
<li><a href="ewol__ConfigFile.html">ConfigFile</a></li>
<li><a href="ewol__ConfigFont.html">ConfigFont</a></li>
<li><a href="ewol__Dimension.html">Dimension</a></li>
<li><a href="ewol__DrawProperty.html">DrawProperty</a></li>
<li><a href="ewol__Drawing.html">Drawing</a></li>
<li><a href="ewol__EConfig.html">EConfig</a></li>
<li><a href="ewol__EConfigElement.html">EConfigElement</a></li>
<li><a href="ewol__EMessage.html">EMessage</a></li>
<li><a href="ewol__EMultiCast.html">EMultiCast</a></li>
<li><a href="ewol__EMultiCast__MessageList.html">EMultiCast::MessageList</a></li>
<li><a href="ewol__EObject.html">EObject</a></li>
<li><a href="ewol__EObjectManager.html">EObjectManager</a></li>
<li><a href="ewol__EventEntry.html">EventEntry</a></li>
<li><a href="ewol__EventEntrySystem.html">EventEntrySystem</a></li>
<li><a href="ewol__EventExtGen.html">EventExtGen</a></li>
<li><a href="ewol__EventInput.html">EventInput</a></li>
<li><a href="ewol__EventInputSystem.html">EventInputSystem</a></li>
<li><a href="ewol__EventShortCut.html">EventShortCut</a></li>
<li><a href="ewol__EventTime.html">EventTime</a></li>
<li><a href="ewol__Face.html">Face</a></li>
<li><a href="ewol__FaceIndexing.html">FaceIndexing</a></li>
<li><a href="ewol__FontBase.html">FontBase</a></li>
<li><a href="ewol__FontFreeType.html">FontFreeType</a></li>
<li><a href="ewol__Fps.html">Fps</a></li>
<li><a href="ewol__GlyphProperty.html">GlyphProperty</a></li>
<li><a href="ewol__Image.html">Image</a></li>
<li><a href="ewol__Kerning.html">Kerning</a></li>
<li><a href="ewol__Light.html">Light</a></li>
<li><a href="ewol__Material.html">Material</a></li>
<li><a href="ewol__MaterialGlId.html">MaterialGlId</a></li>
<li><a href="ewol__Mesh.html">Mesh</a></li>
<li><a href="ewol__PhysicsBox.html">PhysicsBox</a></li>
<li><a href="ewol__PhysicsCapsule.html">PhysicsCapsule</a></li>
<li><a href="ewol__PhysicsCone.html">PhysicsCone</a></li>
<li><a href="ewol__PhysicsConvexHull.html">PhysicsConvexHull</a></li>
<li><a href="ewol__PhysicsCylinder.html">PhysicsCylinder</a></li>
<li><a href="ewol__PhysicsShape.html">PhysicsShape</a></li>
<li><a href="ewol__PhysicsSphere.html">PhysicsSphere</a></li>
<li><a href="ewol__Program.html">Program</a></li>
<li><a href="ewol__Resource.html">Resource</a></li>
<li><a href="ewol__ResourceManager.html">ResourceManager</a></li>
<li><a href="ewol__Shader.html">Shader</a></li>
<li><a href="ewol__Shaper.html">Shaper</a></li>
<li><a href="ewol__SimpleConfigElement.html">SimpleConfigElement</a></li>
<li><a href="ewol__SpecialKey.html">SpecialKey</a></li>
<li><a href="ewol__SpecialKey__SpecialKey__union__.html">SpecialKey::SpecialKey::union ::</a></li>
<li><a href="ewol__SpecialKey__union.html">SpecialKey::union </a></li>
<li><a href="ewol__Sprite.html">Sprite</a></li>
<li><a href="ewol__Text.html">Text</a></li>
<li><a href="ewol__TextDecoration.html">TextDecoration</a></li>
<li><a href="ewol__Texture.html">Texture</a></li>
<li><a href="ewol__TextureFile.html">TextureFile</a></li>
<li><a href="ewol__TexturedFont.html">TexturedFont</a></li>
<li><a href="ewol__VirtualBufferObject.html">VirtualBufferObject</a></li>
<li><a href="ewol__Widget.html">Widget</a></li>
<li><a href="ewol__WidgetManager.html">WidgetManager</a></li>
<li><a href="ewol__Windows.html">Windows</a></li>
<li><a href="ewol__eContext.html">eContext</a></li>
<li><a href="ewol__eInput.html">eInput</a></li>
<li><a href="ewol__progAttributeElement.html">progAttributeElement</a></li>
</ul>
<li>widget</li>
<ul>
<li><a href="widget__Button.html">Button</a></li>
<li><a href="widget__ButtonColor.html">ButtonColor</a></li>
<li><a href="widget__CheckBox.html">CheckBox</a></li>
<li><a href="widget__ColorBar.html">ColorBar</a></li>
<li><a href="widget__ColorChooser.html">ColorChooser</a></li>
<li><a href="widget__Composer.html">Composer</a></li>
<li><a href="widget__Container.html">Container</a></li>
<li><a href="widget__ContainerN.html">ContainerN</a></li>
<li><a href="widget__ContextMenu.html">ContextMenu</a></li>
<li><a href="widget__Entry.html">Entry</a></li>
<li><a href="widget__FileChooser.html">FileChooser</a></li>
<li><a href="widget__Gird.html">Gird</a></li>
<li><a href="widget__Gird__GirdProperties.html">Gird::GirdProperties</a></li>
<li><a href="widget__Image.html">Image</a></li>
<li><a href="widget__Joystick.html">Joystick</a></li>
<li><a href="widget__Label.html">Label</a></li>
<li><a href="widget__Layer.html">Layer</a></li>
<li><a href="widget__List.html">List</a></li>
<li><a href="widget__ListFileSystem.html">ListFileSystem</a></li>
<li><a href="widget__Menu.html">Menu</a></li>
<li><a href="widget__MenuElement.html">MenuElement</a></li>
<li><a href="widget__Mesh.html">Mesh</a></li>
<li><a href="widget__Parameter.html">Parameter</a></li>
<li><a href="widget__ParameterList.html">ParameterList</a></li>
<li><a href="widget__PopUp.html">PopUp</a></li>
<li><a href="widget__ProgressBar.html">ProgressBar</a></li>
<li><a href="widget__Scroll.html">Scroll</a></li>
<li><a href="widget__Sizer.html">Sizer</a></li>
<li><a href="widget__Slider.html">Slider</a></li>
<li><a href="widget__Spacer.html">Spacer</a></li>
<li><a href="widget__StdPopUp.html">StdPopUp</a></li>
<li><a href="widget__WSlider.html">WSlider</a></li>
<li><a href="widget__WidgetScrooled.html">WidgetScrooled</a></li>
<li><a href="widget__elementPL.html">elementPL</a></li>
</ul>
</ul>
<li>ewol</li>
<ul>
<li><a href="ewol__clipBoard__clipboardListe.html">clipBoard::clipboardListe</a></li>
<li><a href="ewol__cursorDisplay.html">cursorDisplay</a></li>
<li><a href="ewol__font__mode.html">font::mode</a></li>
<li><a href="ewol__gravity.html">gravity</a></li>
<li><a href="ewol__keyEvent__keyboard.html">keyEvent::keyboard</a></li>
<li><a href="ewol__keyEvent__status.html">keyEvent::status</a></li>
<li><a href="ewol__keyEvent__type.html">keyEvent::type</a></li>
<li><a href="ewol__openGL__openGlFlags.html">openGL::openGlFlags</a></li>
<li><a href="ewol__orientation.html">orientation</a></li>
</ul>
</div>
</div>
<div class="container" id="content">
<h1>Class: ewol::Drawing</h1>
<br/>
<h2>Synopsis:</h2>
<pre>
+ <a class="code-function" href="#Drawing">Drawing</a> (<span class="code-type">void</span>);<br>+ ~<a class="code-function" href="#Drawing">Drawing</a> (<span class="code-type">void</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#draw">draw</a> (<span class="code-type">bool</span> <span class="code-argument">_disableDepthTest</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#clear">clear</a> (<span class="code-type">void</span>);<br>+ <span class="code-storage-keyword">const</span> vec3 & <a class="code-function" href="#getPos">getPos</a> (<span class="code-type">void</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setPos">setPos</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_pos</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setPos">setPos</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_pos</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setRelPos">setRelPos</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_pos</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setRelPos">setRelPos</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_pos</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setColor">setColor</a> (<span class="code-storage-keyword">const</span> etk::Color<> & <span class="code-argument">_color</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setColorBg">setColorBg</a> (<span class="code-storage-keyword">const</span> etk::Color<> & <span class="code-argument">_color</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setClippingWidth">setClippingWidth</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_pos</span>,<br/> <span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_width</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setClippingWidth">setClippingWidth</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_pos</span>,<br/> <span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_width</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setClipping">setClipping</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_pos</span>,<br/> <span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_posEnd</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setClipping">setClipping</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_pos</span>,<br/> <span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_posEnd</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setClippingMode">setClippingMode</a> (<span class="code-type">bool</span> <span class="code-argument">_newMode</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#setThickness">setThickness</a> (<span class="code-type">float</span> <span class="code-argument">_thickness</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#addVertex">addVertex</a> (<span class="code-type">void</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#lineTo">lineTo</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_dest</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#lineTo">lineTo</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_dest</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#lineRel">lineRel</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_vect</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#lineRel">lineRel</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_vect</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#rectangle">rectangle</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_dest</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#rectangle">rectangle</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_dest</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#rectangleWidth">rectangleWidth</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_size</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#rectangleWidth">rectangleWidth</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_size</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#cube">cube</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_dest</span>);<br>+ <span class="code-type">void</span> <a class="code-function" href="#circle">circle</a> (<span class="code-type">float</span> <span class="code-argument">_radius</span>,<br/> <span class="code-type">float</span> <span class="code-argument">_angleStart</span>,<br/> <span class="code-type">float</span> <span class="code-argument">_angleStop</span>);<br>- <span class="code-type">void</span> <a class="code-function" href="#loadProgram">loadProgram</a> (<span class="code-type">void</span>);<br>- <span class="code-type">void</span> <a class="code-function" href="#unLoadProgram">unLoadProgram</a> (<span class="code-type">void</span>);<br>- <span class="code-type">void</span> <a class="code-function" href="#generateTriangle">generateTriangle</a> (<span class="code-type">void</span>);<br>- <span class="code-type">void</span> <a class="code-function" href="#resetCount">resetCount</a> (<span class="code-type">void</span>);<br>- <span class="code-type">void</span> <a class="code-function" href="#internalSetColor">internalSetColor</a> (<span class="code-storage-keyword">const</span> etk::Color<> & <span class="code-argument">_color</span>);<br>- <span class="code-type">void</span> <a class="code-function" href="#setPoint">setPoint</a> (<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">point</span>);<br></pre>
<h2>Object Hierarchy:</h2>
<pre>
<a href="ewol__Compositing.html">ewol::Compositing</a>
+--> <b>ewol::Drawing</b>
</pre>
<br/>
<h2>Detail:<h2>
<h3>ewol::<a id="Drawing">Drawing</a> ()</h3>
<pre>
<span class="code-function">Drawing</span>(<span class="code-type">void</span>);</pre>
<br/>
Basic constructor
<br/><br/>
<hr/>
<h3>ewol::~<a id="Drawing">Drawing</a> ()</h3>
<pre>
~<span class="code-function">Drawing</span>(<span class="code-type">void</span>);</pre>
<br/>
Basic destructor
<br/><br/>
<hr/>
<h3><a id="draw">draw</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">draw</span>(<span class="code-type">bool</span> <span class="code-argument">_disableDepthTest</span>);</pre>
<br/>
draw All the refistered text in the current element on openGL
<br/><br/>
<hr/>
<h3><a id="clear">clear</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">clear</span>(<span class="code-type">void</span>);</pre>
<br/>
clear alll tre registered element in the current element
<br/><br/>
<hr/>
<h3><a id="getPos">getPos</a> ()</h3>
<pre>
<span class="code-storage-keyword">const</span> vec3 & <span class="code-function">getPos</span>(<span class="code-type">void</span>);</pre>
<br/>
get the current display position (sometime needed in the gui control)
<br/><ul>
<b>Return:</b> the current position.
<br/></ul>
<br/>
<hr/>
<h3><a id="setPos">setPos</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setPos</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_pos</span>);</pre>
<br/>
set position for the next text writen
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_pos</span> Position of the text (in 3D)
<br/></ul>
<br/>
<hr/>
<h3><a id="setPos">setPos</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setPos</span>(<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_pos</span>);</pre>
<br/>
<br/>
<hr/>
<h3><a id="setRelPos">setRelPos</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setRelPos</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_pos</span>);</pre>
<br/>
set relative position for the next text writen
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_pos</span> ofset apply of the text (in 3D)
<br/></ul>
<br/>
<hr/>
<h3><a id="setRelPos">setRelPos</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setRelPos</span>(<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_pos</span>);</pre>
<br/>
<br/>
<hr/>
<h3><a id="setColor">setColor</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setColor</span>(<span class="code-storage-keyword">const</span> etk::Color<> & <span class="code-argument">_color</span>);</pre>
<br/>
set the Color of the current foreground font
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_color</span> Color to set on foreground (for next print)
<br/></ul>
<br/>
<hr/>
<h3><a id="setColorBg">setColorBg</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setColorBg</span>(<span class="code-storage-keyword">const</span> etk::Color<> & <span class="code-argument">_color</span>);</pre>
<br/>
set the background color of the font (for selected Text (not the global BG))
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_color</span> Color to set on background (for next print)
<br/></ul>
<br/>
<hr/>
<h3><a id="setClippingWidth">setClippingWidth</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setClippingWidth</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_pos</span>,
<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_width</span>);</pre>
<br/>
Request a clipping area for the text (next draw only)
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_width</span> Width size of the clipping
<br/></ul>
<br/>
<hr/>
<h3><a id="setClippingWidth">setClippingWidth</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setClippingWidth</span>(<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_pos</span>,
<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_width</span>);</pre>
<br/>
<br/>
<hr/>
<h3><a id="setClipping">setClipping</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setClipping</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_pos</span>,
<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_posEnd</span>);</pre>
<br/>
Request a clipping area for the text (next draw only)
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_pos</span> Start position of the clipping
<br/><b>Parameter [input]:</b> <span class="code-argument">_posEnd</span> End position of the clipping
<br/></ul>
<br/>
<hr/>
<h3><a id="setClipping">setClipping</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setClipping</span>(<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_pos</span>,
<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_posEnd</span>);</pre>
<br/>
<br/>
<hr/>
<h3><a id="setClippingMode">setClippingMode</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setClippingMode</span>(<span class="code-type">bool</span> <span class="code-argument">_newMode</span>);</pre>
<br/>
enable/Disable the clipping (without lose the current clipping position)
<br/>_newMode The new status of the clipping
<br/><br/>
<hr/>
<h3><a id="setThickness">setThickness</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setThickness</span>(<span class="code-type">float</span> <span class="code-argument">_thickness</span>);</pre>
<br/>
Specify the line thickness for the next elements
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_thickness</span> The thickness disired for the next print
<br/></ul>
<br/>
<hr/>
<h3><a id="addVertex">addVertex</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">addVertex</span>(<span class="code-type">void</span>);</pre>
<br/>
add a point reference at the current position (this is a vertex reference at the current position
<br/><br/>
<hr/>
<h3><a id="lineTo">lineTo</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">lineTo</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_dest</span>);</pre>
<br/>
draw a line to a specific position
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_dest</span> Position of the end of the line.
<br/></ul>
<br/>
<hr/>
<h3><a id="lineTo">lineTo</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">lineTo</span>(<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_dest</span>);</pre>
<br/>
<br/>
<hr/>
<h3><a id="lineRel">lineRel</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">lineRel</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_vect</span>);</pre>
<br/>
Relative drawing a line (spacial vector)
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_vect</span> Vector of the curent line.
<br/></ul>
<br/>
<hr/>
<h3><a id="lineRel">lineRel</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">lineRel</span>(<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_vect</span>);</pre>
<br/>
<br/>
<hr/>
<h3><a id="rectangle">rectangle</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">rectangle</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_dest</span>);</pre>
<br/>
draw a 2D rectangle to the position requested.
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_dest</span> Position the the end of the rectangle
<br/></ul>
<br/>
<hr/>
<h3><a id="rectangle">rectangle</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">rectangle</span>(<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_dest</span>);</pre>
<br/>
<br/>
<hr/>
<h3><a id="rectangleWidth">rectangleWidth</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">rectangleWidth</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_size</span>);</pre>
<br/>
draw a 2D rectangle to the requested size.
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_size</span> size of the rectangle
<br/></ul>
<br/>
<hr/>
<h3><a id="rectangleWidth">rectangleWidth</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">rectangleWidth</span>(<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_size</span>);</pre>
<br/>
<br/>
<hr/>
<h3><a id="cube">cube</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">cube</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">_dest</span>);</pre>
<br/>
draw a 3D rectangle to the position requested.
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_dest</span> Position the the end of the rectangle
<br/></ul>
<br/>
<hr/>
<h3><a id="circle">circle</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">circle</span>(<span class="code-type">float</span> <span class="code-argument">_radius</span>,
<span class="code-type">float</span> <span class="code-argument">_angleStart</span>,
<span class="code-type">float</span> <span class="code-argument">_angleStop</span>);</pre>
<br/>
draw a 2D circle with the specify rafdius parameter.
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_radius</span> Distence to the dorder
<br/><b>Parameter [input]:</b> <span class="code-argument">_angleStart</span> start angle of this circle ([0..2PI] otherwithe == > disable)
<br/><b>Parameter [input]:</b> <span class="code-argument">_angleStop</span> stop angle of this circle ([0..2PI] otherwithe == > disable)
<br/></ul>
<br/>
<hr/>
<h3><a id="loadProgram">loadProgram</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">loadProgram</span>(<span class="code-type">void</span>);</pre>
<br/>
load the openGL program and get all the ID needed
<br/><br/>
<hr/>
<h3><a id="unLoadProgram">unLoadProgram</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">unLoadProgram</span>(<span class="code-type">void</span>);</pre>
<br/>
Un-Load the openGL program and get all the ID needed
<br/><br/>
<hr/>
<h3><a id="generateTriangle">generateTriangle</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">generateTriangle</span>(<span class="code-type">void</span>);</pre>
<br/>
Lunch the generation of triangle
<br/><br/>
<hr/>
<h3><a id="resetCount">resetCount</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">resetCount</span>(<span class="code-type">void</span>);</pre>
<br/>
in case of some error the count can be reset
<br/><br/>
<hr/>
<h3><a id="internalSetColor">internalSetColor</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">internalSetColor</span>(<span class="code-storage-keyword">const</span> etk::Color<> & <span class="code-argument">_color</span>);</pre>
<br/>
set the Color of the current triangle drawing
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_color</span> Color to current dots generated
<br/></ul>
<br/>
<hr/>
<h3><a id="setPoint">setPoint</a> ()</h3>
<pre>
<span class="code-type">void</span> <span class="code-function">setPoint</span>(<span class="code-storage-keyword">const</span> vec3 & <span class="code-argument">point</span>);</pre>
<br/>
internal add of the specific point
<br/><ul>
<b>Parameter [input]:</b> <span class="code-argument">_point</span> The requeste dpoint to add
<br/></ul>
<br/>
<hr/>
</div>
</body>
</html>