diff --git a/.gitignore b/.gitignore index 12c77cb..fa62da2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +build/ + ### C ### # Prerequisites *.d @@ -67,4 +69,4 @@ _deps ### CMake Patch ### # External projects -*-prefix/ \ No newline at end of file +*-prefix/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9d515ac --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2023 Felix Suchert + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/README.md b/README.md index 931c96d..e259cec 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,13 @@ This repository houses my own implementation of Tetris. _Why?_ To learn a bit of ## Building -TODO +You need [GLFW](https://www.glfw.org) to build this project, as well as OpenGL 4.1. Compile the project using CMake: + +``` +cmake -S . -B build +cmake --build build +build/Tetris +``` ## Generating glad files @@ -16,4 +22,4 @@ glad --out-path . --api gl:core=4.1 c ## License -This work is licensed under the GNU Lesser General Public License v3. See [LICENSE](./LICENSE) for details. +This work is licensed under the MIR license. See [LICENSE](./LICENSE) for details.