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 > Hard screen flipping?

#123607 - Risine - Thu Mar 29, 2007 4:38 pm

Is there a way to flip vertically the display of a screen when initialised like that : VRAM_D_LCD ?
This way I don't have access to Background and their control registers, so....

#123608 - tepples - Thu Mar 29, 2007 4:55 pm

You can try dropping "frame buffer" mode and using "extended rotation" mode, which does everything that "frame buffer" mode does plus more. The big caveat is that you have to set bit 15 of every pixel. Or is there a reason that your project cannot use "extended rotation" mode?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#123612 - Risine - Thu Mar 29, 2007 5:14 pm

yes, in fact, i'd like to know if it's possible to flip horizontally or vertically the display directly ( not using BG_... or sprites or extended stuff, but with VRAM_***_LCD ).
Maybe with the window coords?

#123616 - tepples - Thu Mar 29, 2007 5:28 pm

What about your project precludes the use of background- or sprite-based flipping? Are you trying to flip an entire screen, including its sprites, its 3D scene, and its raster effects?

Window coordinates only determine which backgrounds are present at which parts of the screen. It's not like the "window upper left corner" in a GUI, which is more like a sprite position or background scroll position than the "windows" of the 2D core or the "window" of the Game Boy Color.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#123644 - Lick - Thu Mar 29, 2007 9:42 pm

I don't think it's possible. The framebuffer is a very limited mode, that let's you do all the rendering.

Like tepples suggested, use extended rotation backgrounds. It is basically the successor of the framebuffer.
_________________
http://licklick.wordpress.com