#144526 - nulL - Sat Nov 03, 2007 7:34 am
Hi I'm having trouble drawing directly to the second screen (bottom) as well as the top screen at the same time.
The above code draws the top sceen green. How can I use simular code to draw the top screen green and the bottem red at the same time?
Sorry if this sounds like a stupid question.
Also where can I find the libnds api documentation. I have found http://devkitpro.sourceforge.net/devkitProWiki/libnds/index.html but the video section is not avaliable. Or do I have to use the headers for the documentation?
Thanks
Code: |
void ClearScreen(void) {
int i; for(i = 256 * 10; i < 256 * 192; i++) VRAM_A[i] = RGB15(0, 15, 0); } int main() { irqInit(); irqEnable(IRQ_VBLANK); videoSetMode(MODE_FB0); vramSetBankA(VRAM_A_LCD); while(1) { swiWaitForVBlank(); ClearScreen(); } } |
The above code draws the top sceen green. How can I use simular code to draw the top screen green and the bottem red at the same time?
Sorry if this sounds like a stupid question.
Also where can I find the libnds api documentation. I have found http://devkitpro.sourceforge.net/devkitProWiki/libnds/index.html but the video section is not avaliable. Or do I have to use the headers for the documentation?
Thanks