gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > 2D Subscreen Framebuffer Question

#40918 - Rinkwraith - Sat Apr 23, 2005 3:03 pm

You know what I love about DS programming? For the first time in so many years I feel like a real newbie coder again - can't get anything working. :) Anyway...

Playing with the 2D core at the moment, and whilst I've managed to get control over the main screen:

Code:
videoSetMode(MODE_FB0);   
vramSetMainBanks(VRAM_A_LCD,VRAM_B_LCD,VRAM_C_SUB_BG,VRAM_D_SUB_SPRITE);


And writing directly to VRAM_A, I can't get the same thing working for the subscreen.

What should I be putting in videoSetModeSub() and vramSetMainBanks(). Just about ran out of things to try here. :(

Cheers.

#41111 - Rinkwraith - Mon Apr 25, 2005 9:03 am

Help? Surely its possible and if so, someone on here knows how but isn't telling. :)

I saw some demo code that assigned VRAM_C and VRAM_D to the subscreen, but I couldn't get it to display directly from RAM. (MODE_FB0/MODE_FB1???).

I'll bounce it to the top this once; but if noone answers than will be gracious and let the topic die.

Thanks,

R

#41112 - Darkain - Mon Apr 25, 2005 9:30 am

framebuffer mode only works on the main screen. you can use tiled modes (or extended background modes) on the sub-screen tho
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS

#41113 - Rinkwraith - Mon Apr 25, 2005 9:54 am

Attatae!!! (Aaaarrrggghhh)

Ruins my plans; but at least I don't feel like such an idiot. :)

Thanks Darkain.

R