From: Bjorn Van Genechten <Bjorn.VanGenechten@as...> - 2005-07-13 09:35:08
I want to use direct opengl commands to create some 3d points in a
The hierarchy should be something like this :
Can someone give me some advice on how to this please ?
On Wed 13 Jul 2005, Bjorn Van Genechten wrote:
> I want to use direct opengl commands to create some 3d points in a
> The hierarchy should be something like this :
> Vgui_shell_tableau -->
> vgui_viewer3D_tableau -->
> vgui_easy3D_tableau -->
> opengl points
I've attached a small program that shows how to develop your own
tableau to replace easy3D to draw points directly via OpenGL. It
draws 1M points or 1M triangles. The triangles are a tad slower, but
both cases display quite responsively on my linux box.
The key thing is that unless you take exclusive control of the event
loop, draw events will happen at somewhat random times. When that
happens, you have to redraw your data. The easiest way to do that is
to wrap your drawing code in a tableau and insert your new tableau in
to an appropriate place in the heirarchy. That's what the tableaux
were designed for.
Get latest updates about Open Source Projects, Conferences and News.