diff options
-rw-r--r-- | include/YAGE/inputmanager.hpp | 2 | ||||
-rw-r--r-- | issues.org | 38 | ||||
-rw-r--r-- | test/matrixtest.cpp | 34 |
3 files changed, 47 insertions, 27 deletions
diff --git a/include/YAGE/inputmanager.hpp b/include/YAGE/inputmanager.hpp index 7f49c3b3..fc9e5479 100644 --- a/include/YAGE/inputmanager.hpp +++ b/include/YAGE/inputmanager.hpp @@ -8,11 +8,9 @@ namespace yage class InputManager { - // member variables private: std::unordered_map<unsigned, bool> key_map_; - // member functions public: void keyPressed(unsigned key); void keyReleased(unsigned key); diff --git a/issues.org b/issues.org new file mode 100644 index 00000000..c0b1c287 --- /dev/null +++ b/issues.org @@ -0,0 +1,38 @@ +#+TITLE: Issues +#+DATE: <2017-07-27 Thu> +#+AUTHOR: Yann Herklotz +#+EMAIL: ymherklotz@gmail.com +#+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline +#+OPTIONS: author:t c:nil creator:comment d:(not "LOGBOOK") date:t +#+OPTIONS: e:t email:nil f:t inline:t num:t p:nil pri:nil stat:t +#+OPTIONS: tags:t tasks:t tex:t timestamp:t toc:t todo:t |:t +#+CREATOR: Emacs 25.2.1 (Org mode 8.2.10) +#+DESCRIPTION: This is a todo list for yage. +#+EXCLUDE_TAGS: noexport +#+KEYWORDS: todo list +#+LANGUAGE: en +#+SELECT_TAGS: export + +* General + +** TODO Add comments + +*** Reason + Currently there are no comments in the code. They should be added so that in the future the code + can be edited easily and improved without having to know the exact implementation of every function. + +*** Requirements + - It should follow the doxygen API so that documentation can easily be generated. + + +* Graphics + +** TODO Switch GPU API + +*** Reason + Vulkan is much more straight forward and it should be easier to understand OpenGL from it. I + also the newest API that will be used in the newest games and is supported by quite a few + graphics cards. + +*** Requirements + - yage shouldn't depend on GL anymore and exclusively use Vulkan libraries. diff --git a/test/matrixtest.cpp b/test/matrixtest.cpp index 8f78091f..50a0b29c 100644 --- a/test/matrixtest.cpp +++ b/test/matrixtest.cpp @@ -58,6 +58,8 @@ bool matrixAddition() yage::Matrix<4, 4, int> m3=m1+m2; + std::cout<<m3<<'\n'; + return m3[1][1]==876; } @@ -85,34 +87,16 @@ int main() { TestBench tb; - bool all_passed=false; + bool all_passed=true; - try - { - test(tb, "Matrix Assign", matrixAssign()); - } - catch(std::exception e) - { - std::cout<<e.what()<<'\n'; - } + try{ test(tb, "Matrix Assign", matrixAssign()); } + catch(std::exception e) { std::cout<<e.what()<<'\n'; } - try - { - test(tb, "Matrix Addition", matrixAddition()); - } - catch(std::exception e) - { - std::cout<<e.what()<<'\n'; - } + try{ test(tb, "Matrix Addition", matrixAddition()); } + catch(std::exception e) { std::cout<<e.what()<<'\n'; } - try - { - test(tb, "Vector Dot Product", vectorDotProduct()); - } - catch(std::string e) - { - std::cout<<e<<'\n'; - } + try{ test(tb, "Vector Dot Product", vectorDotProduct()); } + catch(std::string e) { std::cout<<e<<'\n'; } tb.printResults(); return all_passed; |