Re: The Box, development tool, "Structural programming"
Posted: 14 Nov 2019, 11:40
otd
Open source game community & development
http://forum.freegamedev.net/
jdc {l Wrote}:The drawing of pixels is in functions, this is something that could slow down the performance by a lot. This functions is called āNā hundreds of time.
#define SET_PIXEL(x,y,col) buffer[(x)+(y)*scanline_size]=(col)
#define GET_PIXEL(x,y) (buffer[(x)+(y)*scanline_size])