0 Members and 2 Guests are viewing this topic.
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; }}
void xxx() { Bdisp_EnableColor(1); CopySprite(spritename, 0, 0, 40, 40); Bdisp_PutDisp_DD();}
Execute: C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT.INI"C:\Users\HELDER\Documents\CASIO\MiniSDK\BIN\SHCPP.EXE" -SUB=TEMP.TXT INSIGHT 000E12F2C:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(29) : C5020 (E) Identifier "color_t" is undefinedC:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(29) : C5020 (E) Identifier "data" is undefinedC:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(29) : C5029 (E) Expected an expressionC:\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 undefinedC:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(30) : C5029 (E) Expected an expressionC:\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 undefinedC:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(269) : C5192 (W) Unrecognized character escape sequenceC:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(365) : C5020 (E) Identifier "Bdisp_EnableColor" is undefinedC:\Users\HELDER\Documents\CASIO\MiniSDK\projects\INSIGHT\INSIGHT.CPP(393) : C5020 (E) Identifier "Bdisp_EnableColor" is undefinedDependency: "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
You're missing an include file which defines some of these things. I'm thinking it's one (or more) of these three: display_syscalls.h, display.h, and/or disp_tools.hpp.
void image() { Bdisp_AllClr_VRAM(); EnableColor(1); CopySprite(prizma, 0, 0, 319, 186); Bdisp_PutDisp_DD(); }
void image() { int key; Bdisp_AllClr_VRAM(); EnableColor(1); CopySprite(prizma, 0, 0, 319, 186); Bdisp_PutDisp_DD(); GetKey( &key ); }