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.

Coding > Rotation background wrapping

#2605 - blindfold - Sat Feb 08, 2003 11:01 pm

Hi. I have a little question...
Can I wrap around a rotated background, like a text bg?
If so how to do this?

Thank you for your help...

#2625 - tepples - Sun Feb 09, 2003 4:36 pm

blindfold wrote:
Can I wrap around a rotated background, like a text bg?

You can't for bitmap backgrounds. But for tiled affine backgrounds (mode 1 BG2; mode 2 BG2 BG3), you can turn on wrapping by OR'ing the background control register with 0x2000.

For details see Cowbite Spec: Background Registers.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#2675 - blindfold - Mon Feb 10, 2003 6:33 pm

Thanks I found it. By the way, for HAM users it's:
M_BG2CNT_WRAP_SET_ON
macro for 2nd background, and the same with 3, for 3rd.

#2676 - blindfold - Mon Feb 10, 2003 6:34 pm

Thanks I found it. By the way, for HAM users it's...
M_BG2CNT_WRAP_SET_ON
macro for 2nd background, and the same with 3, for 3rd.