aboutsummaryrefslogtreecommitdiff
path: root/AmpelJonas/cRender.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2018-12-10 20:53:50 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2018-12-10 20:53:50 +0100
commit9fae9dfbc12525cdba4451d92f93c66bb6077b35 (patch)
treedb5d05f0146d836bb7d6e793d12b01defbba1b7c /AmpelJonas/cRender.h
parent4e44cec4a2a29cfee132bbe1ee722fbc5168db87 (diff)
downloadtermgl-9fae9dfbc12525cdba4451d92f93c66bb6077b35.tar.gz
Fixes, automatic resize(linux)
Diffstat (limited to 'AmpelJonas/cRender.h')
-rw-r--r--AmpelJonas/cRender.h8
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
};