/*************************************************************************** console.h - Basic text I/O (using e.g. openGL) ------------------- begin : ma okt 25 2004 copyright : (C) 2004 by CJP email : cornware-cjp@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef CONSOLE_H #define CONSOLE_H #include namespace std {} using namespace std; #include "cstring.h" #include "timer.h" #include "winsystem.h" #include "font.h" /** *@author CJP */ class CConsole { public: CConsole(CWinSystem *winsys); ~CConsole(); void print(const CString &str); void clear(); void draw(); void enterWriteMode(); void leaveWriteMode(); protected: CWinSystem *m_WinSystem; bool m_WriteMode; vector m_ScreenContent; }; extern CFont *theConsoleFont; CFont *loadConsoleFont(); #endif