aboutsummaryrefslogtreecommitdiff
path: root/sword2/build_display.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-09-26 10:07:18 +0000
committerTorbjörn Andersson2003-09-26 10:07:18 +0000
commitb21208e6a92b4e8082d04994b0c99709e2712472 (patch)
tree0357b0847efb8a714e2d8f57493be53ec852bd25 /sword2/build_display.h
parentb7a5024dafefab136c9fc9d5af67588349178681 (diff)
downloadscummvm-rg350-b21208e6a92b4e8082d04994b0c99709e2712472.tar.gz
scummvm-rg350-b21208e6a92b4e8082d04994b0c99709e2712472.tar.bz2
scummvm-rg350-b21208e6a92b4e8082d04994b0c99709e2712472.zip
Some more reformatting / cleanup, and removal of comments that did nothing
but say who added what when. (No disrespect intended, but this information means very little to us.) svn-id: r10413
Diffstat (limited to 'sword2/build_display.h')
-rw-r--r--sword2/build_display.h98
1 files changed, 59 insertions, 39 deletions
diff --git a/sword2/build_display.h b/sword2/build_display.h
index fa48933bd0..fa14717eff 100644
--- a/sword2/build_display.h
+++ b/sword2/build_display.h
@@ -22,60 +22,80 @@
#include "driver/driver96.h"
+// structure filled out by each object to register its graphic printing
+// requrements
-typedef struct //structure filled out by each object to register its graphic printing requrements
-{
- int16 x;
- int16 y;
- uint16 scaled_width;
- uint16 scaled_height;
- int16 sort_y;
- uint32 anim_resource;
- uint16 anim_pc;
- uint16 scale; //denotes a scaling sprite at print time - and holds the scaling value for the shrink routine
- uint16 layer_number; //non zero means this item is a layer - retrieve from background layer and send to special renderer
- uint8 shadingFlag; // non zero means we want this frame to be affected by the shading mask
-
-// uint32 write_mouse_list; //if none zero the shrinker should write coordinates to this mouse_list number
+typedef struct {
+ int16 x;
+ int16 y;
+ uint16 scaled_width;
+ uint16 scaled_height;
+ int16 sort_y;
+ uint32 anim_resource;
+ uint16 anim_pc;
+ // denotes a scaling sprite at print time - and holds the scaling
+ // value for the shrink routine
+
+ uint16 scale;
+
+ // non zero means this item is a layer - retrieve from background
+ // layer and send to special renderer
+
+ uint16 layer_number;
+
+ // non zero means we want this frame to be affected by the shading mask
+
+ uint8 shadingFlag;
+
+ // if none zero the shrinker should write coordinates to this
+ // mouse_list number
+ // uint32 write_mouse_list;
} buildit;
// declared externally so that debug.cpp can display these in the info
-#define MAX_bgp0_sprites 6
-#define MAX_bgp1_sprites 6
-#define MAX_back_sprites 30
-#define MAX_sort_sprites 30
-#define MAX_fore_sprites 30
-#define MAX_fgp0_sprites 6
-#define MAX_fgp1_sprites 6
+
+#define MAX_bgp0_sprites 6
+#define MAX_bgp1_sprites 6
+#define MAX_back_sprites 30
+#define MAX_sort_sprites 30
+#define MAX_fore_sprites 30
+#define MAX_fgp0_sprites 6
+#define MAX_fgp1_sprites 6
// declared externally so that debug.cpp can display these in the info
-extern uint32 cur_bgp0;
-extern uint32 cur_bgp1;
-extern uint32 cur_back;
-extern uint32 cur_sort;
-extern uint32 cur_fore;
-extern uint32 cur_fgp0;
-extern uint32 cur_fgp1;
+
+extern uint32 cur_bgp0;
+extern uint32 cur_bgp1;
+extern uint32 cur_back;
+extern uint32 cur_sort;
+extern uint32 cur_fore;
+extern uint32 cur_fgp0;
+extern uint32 cur_fgp1;
#ifdef _SWORD2_DEBUG
extern char largest_layer_info[128];
extern char largest_sprite_info[128];
#endif
-// the only build list needed externally - by layers.cpp - for adding layers to sort list
+// the only build list needed externally - by layers.cpp - for adding layers
+// to sort list
+
extern buildit sort_list[];
// function prototypes needed externally
-void Reset_render_lists(void);
-void Build_display(void); //Tony21Sept96
-int32 FN_fade_down(int32 *params); //Tony5Dec96
-int32 FN_fade_up(int32 *params); // Chris 15May97
-void Process_image(buildit *build_unit); // (5nov96 JEL)
-void DisplayMsg( uint8 *text, int time ); // (Chris 15May97)
-void RemoveMsg(void);
-void SetFullPalette(int32 palRes); // James17jun97
-
-extern uint32 fps; // needed by debug.cpp for displaying as part of top-screen info
+
+void Reset_render_lists(void);
+void Build_display(void);
+int32 FN_fade_down(int32 *params);
+int32 FN_fade_up(int32 *params);
+void Process_image(buildit *build_unit);
+void DisplayMsg( uint8 *text, int time );
+void RemoveMsg(void);
+void SetFullPalette(int32 palRes);
+
+// needed by debug.cpp for displaying as part of top-screen info
+
+extern uint32 fps;
#endif