From 4b8dba2e737ac9f41e4556546db8ed855ced80e4 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 13 Dec 2019 12:33:51 +0100 Subject: Fixes --- .doxygen | 5 ++--- example/pong.cpp | 14 ++++++++------ src/termgl.h | 10 +++++----- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.doxygen b/.doxygen index 2307873..2f524ac 100644 --- a/.doxygen +++ b/.doxygen @@ -141,9 +141,8 @@ FILE_PATTERNS = *.c \ *.phtml \ *.inc \ *.m \ - *.markdown \ - *.md \ *.mm \ + *.md \ *.dox \ *.py \ *.pyw \ @@ -171,7 +170,7 @@ INPUT_FILTER = FILTER_PATTERNS = FILTER_SOURCE_FILES = NO FILTER_SOURCE_PATTERNS = -USE_MDFILE_AS_MAINPAGE = +USE_MDFILE_AS_MAINPAGE = Readme.md #--------------------------------------------------------------------------- # Configuration options related to source browsing #--------------------------------------------------------------------------- diff --git a/example/pong.cpp b/example/pong.cpp index 2716fa7..6bbbe3d 100644 --- a/example/pong.cpp +++ b/example/pong.cpp @@ -1,7 +1,4 @@ -#include -#include -#include -#include +#include #include class ball : public cObject @@ -115,10 +112,10 @@ int main() screen.clickEvent({ie.x, ie.y}, 0); } else if (ie.type == _EVENT_CHAR) - { + { //handler.charEvent(ie.c); switch(ie.c) - { + { case 'w': screen.moveObject(iBarLeft, {0,-1}, _MOVE_RELATIVE); break; @@ -133,6 +130,11 @@ int main() { return 0; } + else if(ie.type == _EVENT_CTRL) + { + if(ie.c == CTRL_KEY('g')) + render.enableDebugInfo(true); + } } if(!(++cc % 3)) screen.moveObject(iAball, aball.getV(), _MOVE_RELATIVE); diff --git a/src/termgl.h b/src/termgl.h index 8410800..8c8d307 100644 --- a/src/termgl.h +++ b/src/termgl.h @@ -7,10 +7,10 @@ #ifndef _TERMGL_H_ #define _TERMGL_H_ -#include -#include -#include -#include -#include +#include "termgl/cInput.h" +#include "termgl/cObject.h" +#include "termgl/cObjectHandler.h" +#include "termgl/cRender.h" +#include "termgl/cWiremesh.h" #endif -- cgit v1.2.3