aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-16 20:37:42 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-16 20:37:42 +0100
commitf4e7ec209ec70f855999668e58c23b20227da84d (patch)
treef7e53554aa25015bda05d6d5e6b1b46f3f03b646
parent4ed209d756c3cf719d8255c698d7988e85aa746a (diff)
downloadtermgl-f4e7ec209ec70f855999668e58c23b20227da84d.tar.gz
Fixed examples #4
-rw-r--r--example/3d.cpp4
-rw-r--r--example/collision.cpp4
-rw-r--r--example/pong.cpp6
-rw-r--r--example/test.cpp4
4 files changed, 9 insertions, 9 deletions
diff --git a/example/3d.cpp b/example/3d.cpp
index 313b632..11a2d3d 100644
--- a/example/3d.cpp
+++ b/example/3d.cpp
@@ -29,10 +29,10 @@ public:
cc++;
drawText(std::to_string(cc), {2,2}, _COL_RED);
- drawPoint('Q', _pos, true, _COL_YELLOW);
+ drawPoint('Q', _pos, _COL_YELLOW);
}
- virtual void onChar(unsigned char _c) { drawPoint(_c, {1,1},true, _COL_BLUE); }
+ virtual void onChar(unsigned char _c) { drawPoint(_c, {1,1}, _COL_BLUE); }
private:
int cc;
};
diff --git a/example/collision.cpp b/example/collision.cpp
index 7759dae..f08ae4e 100644
--- a/example/collision.cpp
+++ b/example/collision.cpp
@@ -30,7 +30,7 @@ public:
cc++;
drawText(std::to_string(cc), {2,2}, _COL_RED);
- drawPoint('Q', _pos, true, _COL_YELLOW);
+ drawPoint('Q', _pos, _COL_YELLOW);
}
virtual bool onCollisionActive(sPos _hit, int _passiveObject){
@@ -39,7 +39,7 @@ public:
return true;
}
- virtual void onChar(unsigned char _c) { drawPoint(_c, {1,1},true, _COL_BLUE); }
+ virtual void onChar(unsigned char _c) { drawPoint(_c, {1,1}, _COL_BLUE); }
private:
int cc;
int kc;
diff --git a/example/pong.cpp b/example/pong.cpp
index d93bc1a..568010e 100644
--- a/example/pong.cpp
+++ b/example/pong.cpp
@@ -7,7 +7,7 @@
class ball : public cObject
{
public:
- ball() : v({1,1}) { setSize(1,1); drawPoint('O', {0,0}, true, _COL_RED); }
+ ball() : v({1,1}) { setSize(1,1); drawPoint('O', {0,0}, _COL_RED); }
~ball() { destruct(); }
virtual bool onCollisionActive(sPos _hit, int _passiveObject)
{
@@ -28,7 +28,7 @@ private:
class bar : public cObject
{
public:
- bar() { setSize(1,5); drawLine('|', {0,0},{0,4}, true, _COL_BLUE);}
+ bar() { setSize(1,5); drawLine('|', {0,0},{0,4}, _COL_BLUE);}
~bar() { destruct(); }
virtual int onCollisionPassive(sPos _hit){ return 2; }
virtual bool onCollisionActive(sPos _hit, int _passiveObject){ return true; }
@@ -37,7 +37,7 @@ public:
class edge : public cObject
{
public:
- edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{(int)x-1,(int)y-1}, true, _COL_DEFAULT);}
+ edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{(int)x-1,(int)y-1}, _COL_DEFAULT);}
~edge() { destruct(); }
virtual int onCollisionPassive(sPos _hit)
{
diff --git a/example/test.cpp b/example/test.cpp
index afef931..4d9af96 100644
--- a/example/test.cpp
+++ b/example/test.cpp
@@ -6,7 +6,7 @@
class ball : public cObject
{
public:
- ball() : v({1,1}) { setSize(1,1); drawPoint('O', {0,0}, true, _COL_RED); }
+ ball() : v({1,1}) { setSize(1,1); drawPoint('O', {0,0}, _COL_RED); }
~ball() { destruct(); }
virtual bool onCollisionActive(sPos _hit, int _passiveObject)
{
@@ -26,7 +26,7 @@ private:
class edge : public cObject
{
public:
- edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{(int)x-1,(int)y-1}, true, _COL_DEFAULT);}
+ edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{(int)x-1,(int)y-1}, _COL_DEFAULT);}
~edge() { destruct(); }
virtual int onCollisionPassive(sPos _hit)
{