OpenXcom Forum

Contributions => Programming => Topic started by: sir_nacnud on December 04, 2010, 10:42:50 pm

Title: Moved primitive drawing calls in to Surface
Post by: sir_nacnud on December 04, 2010, 10:42:50 pm
I moved the primitive drawing calls in to the Surface class as discussed here: https://openxcom.ninex.info/forum/index.php?topic=124.0

I have added the following functions to Surface:
drawRect()
drawLine()
drawCircle()
drawPolygon()
drawTexturedPolygon()
drawString()

These functions should be used instead of directly calling SDL_gfx functions.  Let me know if there is anything I have missed.  See attached patch.
Title: Re: Moved primitive drawing calls in to Surface
Post by: SupSuper on December 10, 2010, 05:58:56 am
Good job, added to SVN. :)