Mapping Vram H to sub BG...
Posted: Fri Jul 23, 2010 8:01 am
Sorry for double posting as my net time is kind of limited these days.
Video.h
256 * 192 = 48kb
Bank H is just 32 KB. Does it mean that bank I gets mapped to sub BG also?
I wanna map this as LCD since I want to do some per pixel stuff on the sub screen.
Also when I call:
Is the pallete loaded in vram bank E?
So far this is how I've been using the VRAM.
A = filled by two gltextures at 64 kb each so all of 128 kb is filled.
B = Some textures but still have a lot left.
C = Not used yet (only by consoledemoInit())
D = VRAM_D_SUB_SPRITE (But still lots of stuff free)
E = Unused but I'm not sure if glpalette uses it.
F, G, H, I = not used.
Thanks!
Video.h
Code: Select all
typedef enum {
VRAM_H_LCD = 0,
VRAM_H_SUB_BG = 1,
VRAM_H_SUB_BG_EXT_PALETTE = 2,
} VRAM_H_TYPE;
Code: Select all
Bank H 0x06898000 0x0689FFFF 32KB
Bank I 0x068A0000 0x068A3FFF 16KB
I wanna map this as LCD since I want to do some per pixel stuff on the sub screen.
Also when I call:
Code: Select all
gluTexLoadPal();
So far this is how I've been using the VRAM.
A = filled by two gltextures at 64 kb each so all of 128 kb is filled.
B = Some textures but still have a lot left.
C = Not used yet (only by consoledemoInit())
D = VRAM_D_SUB_SPRITE (But still lots of stuff free)
E = Unused but I'm not sure if glpalette uses it.
F, G, H, I = not used.
Thanks!