#10381 - whells - Wed Sep 03, 2003 7:09 pm
Code: |
#include "Bgd02.h" // preDefine #include "robert16b.c" //Conver an 16-bit image(*.bmp) to .c file //Draw void paint() { int x,y; for(y = 0; y < 160; y++) { for(x = 0; x < 240; x++) { VideoBuffer[(y)*240 + (x)] = robert16b_Map[(y)*240 + (x)]; } } } int main() { SetMode( MODE_3 | BG2_ENABLE ); paint(); } |
It looks vary easy but I always get wrong output ...:q.
I just want to test MODE 3
Include Original Image
Output Image
_________________
~ GBA SP~