<div dir="ltr"><br>I want to add an OpenGl code in an application of VTK.<br><br>For this purpose, <font size="2">I try to draw lines using commands OpenGL.</font>:<br><pre style="font-family: arial,helvetica,sans-serif;">
<font size="2"><b>1) I add this on the top of the program :</b><br><br>#include &lt;GL/gl.h&gt; <br><br></font></pre><pre style="font-family: arial,helvetica,sans-serif;"><b><font size="2">2) I </font>place my OpenGL commands after renWin-&gt;Render() but before iren-&gt;Start()</b><font size="2"><b> :  </b><br>
<br>renWin-&gt;Render();<br><br>    glBegin (GL_LINES);<br>       glVertex2f (-2.5, 2.5);<br>       glVertex2f (2.5, -2.5);<br>     glEnd ();<br><br>iren-&gt;Start();</font></pre><font size="2"><br></font><b>But it doesn&#39;t appears.</b><br>
<pre style="font-family: arial,helvetica,sans-serif;"><font><font size="2">did I miss something ?</font></font> <font size="2">How can I do this work ? <br><br>Looking forward to hear from you soon,<br><br>Amine<br></font></pre>
<br></div>