76
Casio Calculators / [MiniSDK] how to draw on screen sprites converted with SourceCoder
« on: April 01, 2012, 06:21:17 pm »
Hello, i tried convert sprites with cemetech sourcecoder, for use in an application developed with miniSDK
to show images, i used the routine CopySprite by Kerm:
I called the image with the following function
but, when i compile the source, the sdk gives me the following errors:
someone can help me?
to show images, i used the routine CopySprite by Kerm:
Code: [Select]
void CopySprite(const void* datar, int x, int y, int width, int height) {
color_t*data = (color_t*) datar;
color_t* VRAM = (color_t*)0xA8000000;
VRAM += LCD_WIDTH_PX*y + x;
for(int j=y; j<y+height; j++) {
for(int i=x; i<x+width; i++) {
*(VRAM++) = *(data++);
}
VRAM += LCD_WIDTH_PX-width;
}
}
I called the image with the following function
Code: [Select]
void xxx() {
Bdisp_EnableColor(1);
CopySprite(spritename, 0, 0, 40, 40);
Bdisp_PutDisp_DD();
}
but, when i compile the source, the sdk gives me the following errors:
Code: [Select]
Execute: C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT.INI
"C:\Users\HELDER\Documents\CASIO\MiniSDK\BIN\SHCPP.EXE" -SUB=TEMP.TXT INSIGHT 000E12F2
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(29) : C5020 (E) Identifier "color_t" is undefined
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(29) : C5020 (E) Identifier "data" is undefined
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(29) : C5029 (E) Expected an expression
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(29) : C5065 (E) Expected a ";"
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(30) : C5020 (E) Identifier "VRAM" is undefined
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(30) : C5029 (E) Expected an expression
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(30) : C5065 (E) Expected a ";"
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(31) : C5020 (E) Identifier "LCD_WIDTH_PX" is undefined
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(269) : C5192 (W) Unrecognized character escape sequence
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(365) : C5020 (E) Identifier "Bdisp_EnableColor" is undefined
C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(393) : C5020 (E) Identifier "Bdisp_EnableColor" is undefined
Dependency: "C:\Users\HELDER\Documents\CASIO\MiniSDK\objects\INSIGHT.obj" does not exist!
Dependency: "C:\Users\HELDER\Documents\CASIO\MiniSDK\objects\INSIGHT.obj" does not exist!
Ready
someone can help me?