Pixel Drawing System

  • jalfor
    27th Sep 2011 Member 0 Permalink
    I'm just curious, what system does TPT use to draw pixels? Does it have a list of what needs to be drawn and draws it, or does it do it a different way.
  • mniip
    27th Sep 2011 Developer 0 Permalink
    You mean the lua drawing?
    Anyways it just buffers, then adds lua drawings above, then just pastes onto screen
    [this behavior (except lua though) is predefined in any C/C++ SDL application]
  • jalfor
    27th Sep 2011 Member 0 Permalink
    Not Lua drawing, I mean TPT itself.
  • Pilihp64
    27th Sep 2011 Developer 0 Permalink
    Yea it is basically a list a rgb values, that SDL then draws on the screen.
    You can draw pixels to the screen the same way from the Lua API we have.
  • jalfor
    27th Sep 2011 Member 0 Permalink
    Ok, thanks