How to initialize VRAM and BGs for GL2D right
Posted: Thu Aug 09, 2012 12:01 pm
I'm new to nds-programming, so this might be somewhere solved, but I didn't find it already.
I didn't understand the way the VRAM works especially how to set the banks right. For drawing I'm using the GL2D-Calls. Therefore I'm not loading the images into oam, am I?
I found two interesting sites:
http://mtheall.com/banks.html
and
http://mtheall.com/vram.html
It's a nice visualization but on the first site I don't know how to correctly set the values for my needs. On the second site the same.
I have an orthogonally 3D perspective for the lowers creen ( by using lcdMainOnBottom( ) ). And there shall be some 2D objects not just the console on the upper screen. I'm using two textures "compiled" using grit. Together they size 58kb as asm-code.
Hope you can help me understand the system.
I didn't understand the way the VRAM works especially how to set the banks right. For drawing I'm using the GL2D-Calls. Therefore I'm not loading the images into oam, am I?
I found two interesting sites:
http://mtheall.com/banks.html
and
http://mtheall.com/vram.html
It's a nice visualization but on the first site I don't know how to correctly set the values for my needs. On the second site the same.
I have an orthogonally 3D perspective for the lowers creen ( by using lcdMainOnBottom( ) ). And there shall be some 2D objects not just the console on the upper screen. I'm using two textures "compiled" using grit. Together they size 58kb as asm-code.
Hope you can help me understand the system.