Friday, April 4, 2008

A Long Night Ahead

Okay, I'm going to do a little brainstorming here on the Blog. It helps me get energized and I know these notes won't get lost!

Event Processing

Okay, I hacked this thing together in a week. A lot of the objects don't even have positions! The parent object sets the position in a graphics context and then calls draw on the children.

Idea: Piggyback mouse events inside the draw call. Yeah, probably not a long term solution but it will work for the time being.

Problem: Objects are drawn back to front!!! The one in back will get the event! Negative.

Solution? ... I'm thinking ... more along the lines of a query.

Get all objects at point x,y and reverse the list.

Hey, It could happen!

No comments: