<DIV>hello!</DIV>
<DIV> I want to render something in the vtkWin32OpenGLRenderWindow using OpenGL. The sentenses are as follow:</DIV>
<DIV> </DIV>
<DIV>////////////////////////////////////////</DIV>
<DIV>................... </DIV>
<DIV> </DIV>
<DIV> this->renWin->AddRenderer(this->ren);<BR> this->renWin->SetParentId(this->m_hWnd);</DIV>
<DIV> this->iren->SetInteractorStyle(this->interactorStyle);<BR> this->iren->SetRenderWindow(this->renWin); </DIV>
<DIV> this->ren->AddActor(this->axesActor);</DIV>
<DIV>renWin->Render();</DIV>
<DIV>for (i = 5; i >= 0; i--)<BR> {<BR> glBegin (GL_LINE_LOOP);<BR> glNormal3fv (&n[i][0]);<BR> glVertex3fv (&v[faces[i][0]][0]);<BR> glVertex3fv (&v[faces[i][1]][0]);<BR> glVertex3fv (&v[faces[i][2]][0]);<BR> glVertex3fv (&v[faces[i][3]][0]);<BR> glEnd ();<BR> }<BR> iren->Start();</DIV>
<DIV>//////////////////////////////////////////</DIV>
<DIV>but it seems not to take effect. is there anything I should take care of to use vtk with opengl? If someone could offer samples , it would be terrific.</DIV>
<DIV>Thanks in advance.</DIV>
<DIV> </DIV>
<DIV> </DIV><p>
<hr size=1>DO YOU YAHOO!?<br>
<a href="http://cn.mail.yahoo.com/?id=77072" target=blank>
雅虎免费G邮箱-中国最强免费防毒反垃圾超大邮箱</a>