aliens

Author Topic: Moved primitive drawing calls in to Surface  (Read 5811 times)

Offline sir_nacnud

  • Captain
  • ***
  • Posts: 54
    • View Profile
Moved primitive drawing calls in to Surface
« 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.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Moved primitive drawing calls in to Surface
« Reply #1 on: December 10, 2010, 05:58:56 am »
Good job, added to SVN. :)