Overhaul the game's "rendering pipeline", simplifying it a fair bit

- Also significantly improves performance
This commit is contained in:
2014-04-15 01:26:40 -04:00
parent 3274864f12
commit 14a089aaee
12 changed files with 64 additions and 174 deletions

View File

@@ -27,7 +27,6 @@ CursorRef cursors[24] = {
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
};
void (*redraw_screen)();
RECT bg[21];
RECT map_pat[30];
RECT bw_pats[6];
@@ -44,8 +43,7 @@ void clean_up_graphtool(){
CleanUp();
}
void init_graph_tool(void (*redraw_callback)()){
redraw_screen = redraw_callback;
void init_graph_tool(){
int i,j;
// TODO: The duplication of location here shouldn't be necessary
// TODO: Store the hotspots on disk instead of hardcoded here

View File

@@ -94,7 +94,7 @@ struct cCustomGraphics {
void init_graph_tool(void (*redraw_callback)());
void init_graph_tool();
void clean_up_graphtool();
void set_cursor(cursor_type which_curs);
void restore_cursor();