How would you? Paned interface and objects
Posted: Fri Mar 21, 2014 7:24 pm
I'm prototyping the interface and workflow for a paned application. I tried using the Canvas functions, but the inability to set the background color caused redraw ugliness so I opted for drawing directly on the Window surface. Currently, I'm using basic drawing of shapes and text plus a large array of structures (pane/object/subobject) to keep track of what's where. This requires quite a bit of maintenance of object coords. It's really not that tough, but I'm a little concerned about the time it takes to zero any particular structure element. The panes are easy as the cover the entire array, but objects can move so I need to zero the previous matrix area before moving it. Not hard but a tad time consuming using loops. Is there a fast way to fill just one element of a structure with zeroes?
Also, I might eventually move to using image gadgets or sprites. Any opinions on what might be best or fastest? There's no need for collision detection or the like, but there is a need to know which object I'm clicking over.
Cheers, Jon
Also, I might eventually move to using image gadgets or sprites. Any opinions on what might be best or fastest? There's no need for collision detection or the like, but there is a need to know which object I'm clicking over.
Cheers, Jon