I need to draw triangles (and circles) on the screen (any drawable)
and have active events on each object I draw: namely mouse_over, click.. etc..
[they can overlap]
Is there any alternative to gnome-canvas?
In particular gnome-canvas was working nicely up to 20000 objects
but a bit heavy with 40000. (I would guess that an equivalent
canvas solution will suffer the same problem..)
Is there a simple way to "recode" a simple z-buffer using existing tools?
With simple I mean that I do not have to recalculate exposed pixels.
1) There is no simple coding or otherwise I would be doing a canvas!
2) for my little application I have a possible solution:
I set up a z-buffer as simple integers vector. I store 2 doubles
at least for each figure so an integer shouldn't harm the memory.
Due to the type of application, on an click at x,y, I can guess
a limited number of triangles which might be present in the area.
I can redraw the area in the style of a canvas and propagate
the event. Grab it. destroy the canvas-like object. and redraw
in normal style.
I am not sure if I can actually do it... more over I'll still need
the canvas part.