mrkotfw
Mid Boss
when i try to display a 2d graphic, it shows it corrupt...
how would i find out the Xs ???of the image?
where are the #define's of NBG0 and NBG3 ? lol
Code:
/* -------------------------------------------------------------- */
FIXED scrollxa=sip_pos_x;
FIXED scrollya=sip_pos_y;
/* -------------------------------------------------------------- */
void epScrollLogo(void){
slTVOff();
slColRAMMode(CRM16_1024);
slBack1ColSet((void *)BACK_COL_ADR,0);
slCharNbg1(COL_TYPE_256,CHAR_SIZE_1x1);
slPageNbg1((void *)NBG1_CEL_ADR,0,PNB_1WORD|CN_12BIT);
slPlaneNbg1(PL_SIZE_1x1);
slMapNbg1((void *)NBG1_MAP_ADR,(void *)NBG1_MAP_ADR,(void *)NBG1_MAP_ADR,(void *)NBG1_MAP_ADR);
Cel2VRAM(cel_logo,(void *)NBG1_CEL_ADR,320*64);
Map2VRAM(map_logo,(void *)NBG1_MAP_ADR,32,32,0,256);
Pal2CRAM(pal_logo,(void *)NBG1_COL_ADR,256);
slScrPosNbg1(toFIXED(0.0),toFIXED(0.0));
slTVOn();
while(1){
slScrPosNbg1(toFIXED(0.0),toFIXED(0.0));
slSynch();
}
}
/* -------------------------------------------------------------- */
void ss_main(void){
slInitSystem(TV_320x224,NULL,1);
while(1){
epScrollLogo();
slSynch();
}
}
how would i find out the Xs ???of the image?
Code:
Map2VRAM(map_logo,(void *)NBG1_MAP_ADR,X,X,0,256);
where are the #define's of NBG0 and NBG3 ? lol