diff options
author | 2008-03-11 02:41:24 +0000 | |
---|---|---|
committer | 2008-03-11 02:41:24 +0000 | |
commit | 5397db06151ae8a3473449f01038cdd99ffe80d3 (patch) | |
tree | a31482bb118623d334a5f2a7e6e3d4a48b6df49e /src/emu/crsshair.h | |
parent | 2a8f0936fd1b3e282bac44c6e45300a01d18960d (diff) |
Moves crosshair code from video.c into its own module
Simplifies crosshair logic and makes it screen device based
Diffstat (limited to 'src/emu/crsshair.h')
-rw-r--r-- | src/emu/crsshair.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/emu/crsshair.h b/src/emu/crsshair.h new file mode 100644 index 00000000000..48418ef2e2f --- /dev/null +++ b/src/emu/crsshair.h @@ -0,0 +1,28 @@ +/*************************************************************************** + + crsshair.h + + Crosshair handling. + + Copyright Nicola Salmoria and the MAME Team. + Visit http://mamedev.org for licensing and usage restrictions. + +***************************************************************************/ + +#pragma once + +#ifndef __CRSSHAIR_H__ +#define __CRSSHAIR_H__ + + +/* initializes the crosshair system */ +void crosshair_init(running_machine *machine); + +/* draws crosshair(s) in a given screen, if neccessary */ +void crosshair_render(const device_config *screen); + +/* toggles crosshair visibility */ +void crosshair_toggle(running_machine *machine); + + +#endif /* __CRSSHAIR_H__ */ |