aprobinson / GDev

GNU General Public License v2.0
0 stars 0 forks source link

Add rectangle and circle shape classes for use with the ShapeButton class #5

Closed aprobinson closed 9 years ago

aprobinson commented 9 years ago

Create a base class with pure virtual functions isPointInShape and getBoundingBox, which takes and fills an SDL_Rect object.

aprobinson commented 9 years ago

The Rectangle and Ellipse classes derive from the Shape base class.