diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-11 19:12:52 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-11 19:12:52 (GMT) |
| commit | d5435c50a966c0fb5a0c62a5af7aa834ccf9e48d (patch) | |
| tree | dece342fdb3f1245d8f962183a37a334a89ddeaf /includes | |
| parent | 4f8720eecc034fcbb91fb5045bd7670140ba2f2f (diff) | |
| download | powder-d5435c50a966c0fb5a0c62a5af7aa834ccf9e48d.zip powder-d5435c50a966c0fb5a0c62a5af7aa834ccf9e48d.tar.gz | |
Debug info for particles allocation
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/defines.h | 4 | ||||
| -rw-r--r-- | includes/graphics.h | 2 | ||||
| -rw-r--r-- | includes/luaconsole.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/includes/defines.h b/includes/defines.h index 23bbb71..dd36b47 100644 --- a/includes/defines.h +++ b/includes/defines.h @@ -129,6 +129,9 @@ typedef unsigned int pixel; #define SDEUT //#define REALHEAT +#define DEBUG_PARTS 0x0001 +#define DEBUG_PARTCOUNT 0x0002 + typedef unsigned char uint8; extern int amd; @@ -151,6 +154,7 @@ extern int kiosk_enable; extern int aheat_enable; extern int decorations_enable; extern int hud_enable; +extern int debug_flags; extern int active_menu; diff --git a/includes/graphics.h b/includes/graphics.h index bafe9db..80dd77c 100644 --- a/includes/graphics.h +++ b/includes/graphics.h @@ -160,6 +160,8 @@ void render_cursor(pixel *vid, int x, int y, int t, int rx, int ry); int sdl_open(void); +int draw_debug_info(pixel* vid); + #ifdef OpenGL void Enable2D (); void RenderScene (); diff --git a/includes/luaconsole.h b/includes/luaconsole.h index b2a7a64..ff65cbf 100644 --- a/includes/luaconsole.h +++ b/includes/luaconsole.h @@ -65,4 +65,5 @@ int luatpt_cmode_set(lua_State* l); int luatpt_error(lua_State* l); int luatpt_heat(lua_State* l); int luatpt_setfire(lua_State* l); +int luatpt_setdebug(lua_State* l); #endif |
