the display->buffer.PutPixel(i,t,E_RGBX(250,250,250)); so slow.
The given code works not correctly (draws small 10х10 squares instead of one big 100х100).
How it is possible to draw points quickly?
Thanks.
- Code:
E2DSURFACEINFO sf_inf;
unsigned char* Video_Buffer=display->buffer.Lock(&sf_inf);
for (int i=0;i<100;i++)
for (int t=0;t<100;t++)
//display->buffer.PutPixel(i,t,E_RGBX(250,250,250));
Video_Buffer[i+t*sf_inf.width]=E_RGBX(250,250,250);
display->buffer.Unlock();
The given code works not correctly (draws small 10х10 squares instead of one big 100х100).
How it is possible to draw points quickly?
Thanks.