first off, great tutorials! i have not ever ventured into open gl of any flavor and these were very descriptive. i couldn't help but get lost playing while reading through your tutorials.
i do have a question though regarding the click handling. you show how to capture the clicks and test the area to see if its within the square, is this the only way to do this?
my real question is if i have 4 or 5 or more button areas (squares or other gl drawn shapes), do i just have to test to see where the click was in a bunch of ifs? or can you assign some sort of actual type to those squares and have those square inherit the touch events and act like a normal button?
thanks for any guidance.
|