summaryrefslogtreecommitdiff
path: root/example/3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'example/3d.cpp')
-rw-r--r--example/3d.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/example/3d.cpp b/example/3d.cpp
index e488da1..1b7e9e1 100644
--- a/example/3d.cpp
+++ b/example/3d.cpp
@@ -14,27 +14,27 @@
class testobject : cObject
{
public:
- testobject()
- {
- setSize(10,5);
- cc = 0;
+ testobject()
+ {
+ setSize(10,5);
+ cc = 0;
- drawRectangle('#', NULL, {0,0}, {9,4}, _COL_GREEN, _COL_DEFAULT);
- }
+ drawRectangle('#', NULL, {0,0}, {9,4}, _COL_GREEN, _COL_DEFAULT);
+ }
- ~testobject() { destruct(); }
+ ~testobject() { destruct(); }
- virtual void onClick(sPos _pos, unsigned int _button)
- {
- cc++;
- drawText(std::to_string(cc), {2,2}, _COL_RED);
+ virtual void onClick(sPos _pos, unsigned int _button)
+ {
+ cc++;
+ drawText(std::to_string(cc), {2,2}, _COL_RED);
- drawPoint('Q', _pos, _COL_YELLOW);
- }
+ drawPoint('Q', _pos, _COL_YELLOW);
+ }
virtual void onChar(unsigned char _c) { drawPoint(_c, {1,1}, _COL_BLUE); }
private:
- int cc;
+ int cc;
};
int main(int argc, char* argv[])