>> I am looking for a method to draw simple lines between two points. > > Depending on how you have set up you application you can also issue > OpenGL calls directly. If you are using the SimpleSceneManager this is a > bit tricky, because it does the buffer swapping internally, when you > call redraw(). Therefore you need to replace > > mgr->redraw(); > > with: > > mgr->getWindow()->activate(); > mgr->getWindow()->frameInit(); > mgr->getWindow()->renderAllViewports( > dynamic_cast<RenderActionBase *>(mgr->getAction())); > > // your OpenGL calls here > > mgr->getWindow()->swap(); > mgr->getWindow()->frameExit(); >
Thanks for the answere. I got the programm to build succesfull and also it runs this way. But now the objects in my scenegraph are not drawn anymore... Any ideas why not? Sebastian ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
