jasonbcox / rocket

ROCKET Engine
Other
1 stars 0 forks source link

Add Graphics::Button and Graphics::ToggleButton #6

Closed jasonbcox closed 11 years ago

jasonbcox commented 11 years ago

A Button takes a Sprite to display and the position to display it at. The sprite's UV coordinates should be treated as sections for the button's animation. Add animation support to Sprite as well.

A ToggleButton inherits Button and should have toggle() that switches its value.