From b4973888aeaea2dde6058bc06c3f6631349e7f3c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 3 Feb 2008 01:43:03 +0000 Subject: command buffer handling engine function parsing buffered client console --- src/core/commandbuffer.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/core/commandbuffer.h (limited to 'src/core/commandbuffer.h') diff --git a/src/core/commandbuffer.h b/src/core/commandbuffer.h new file mode 100644 index 0000000..c18acd0 --- /dev/null +++ b/src/core/commandbuffer.h @@ -0,0 +1,33 @@ +/* + core/commandbuffer.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_COMMANDBUFFER_H__ +#define __INCLUDED_COMMANDBUFFER_H__ + +// project headers +#include "core/core.h" + +// C++ headers +#include + +namespace core { + +/// global buffer to hold the command stream +extern std::stringstream cmd; + +namespace commandbuffer { + +/// execute the commands in the buffer +void execute(); + +/// flush the command buffer +void clear(); + +} + +} + +#endif // COMMANDBUFFER -- cgit v1.2.3