diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2018-12-10 20:53:50 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2018-12-10 20:53:50 +0100 |
commit | 9fae9dfbc12525cdba4451d92f93c66bb6077b35 (patch) | |
tree | db5d05f0146d836bb7d6e793d12b01defbba1b7c /AmpelJonas/cRender.h | |
parent | 4e44cec4a2a29cfee132bbe1ee722fbc5168db87 (diff) | |
download | termgl-9fae9dfbc12525cdba4451d92f93c66bb6077b35.tar.gz |
Fixes, automatic resize(linux)
Diffstat (limited to 'AmpelJonas/cRender.h')
-rw-r--r-- | AmpelJonas/cRender.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/AmpelJonas/cRender.h b/AmpelJonas/cRender.h index 848619d..30077e9 100644 --- a/AmpelJonas/cRender.h +++ b/AmpelJonas/cRender.h @@ -1,5 +1,6 @@ #pragma once +#include <stdlib.h> #include <string> #include <math.h> #include <iostream> @@ -96,6 +97,9 @@ public: int getLastError(); //Returns last Error that was not returnable + sPos getSize(); + //Returns actual Size of screen + protected: cRender(); //Empty Constructor for being inheritable @@ -124,4 +128,8 @@ private: //Slightly adapted from: http://www.cplusplus.com/forum/windows/121444/ #endif void gotoxy( int x, int y ); + void setBufferSize(sPos _size); +#ifdef __linux__ + sPos getConsoleWindowSize(); +#endif }; |