From d6f0f22e50686da5c31837f7c391bb8cb85d43ed Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 2 Apr 2020 18:21:15 -0400 Subject: [PATCH] Add Getting Started instructions (#7) * Add Getting Started instructions This adds some getting started instructions to the README References #7 * Update README.md * Update README.md * Update README.md * Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index e20fabd..c3b5d30 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ int main() } ``` +See the [examples folder](examples) for more of the raylib examples that have been ported over to *raylib-cpp*. + ## Convention There are a few conventions that raylib-cpp takes on when adopting raylib... @@ -157,8 +159,25 @@ cat .Resize(150, 200); ``` +## Getting Started + +*raylib-cpp* is a header-only library. This means in order to use it, you must link your project to [raylib](https://www.raylib.com/), and then include [`raylib/raylib.hpp`](raylib-cpp/include/raylib/raylib.hpp). + +1. Set up a *raylib* project using the [build and install instructions](https://github.com/raysan5/raylib#build-and-installation) +2. Download *raylib-cpp* +3. Include [`raylib/raylib.hpp`](raylib-cpp/include/raylib/raylib.hpp) + ``` cpp + #include "raylib/raylib.hpp" + ``` + +### Starter Projects + +There is a [CMake sample project template](projects/CMake) that you can use a starter template. If there's another build system or IDE that you use, feel free to [make an issue](https://github.com/RobLoach/raylib-cpp/issues) and we can add it in. + ## Development +*raylib-cpp* uses [CMake](https://cmake.org) as a primary target for development. To build it, and run the tests/examples, use... + ``` bash mkdir build cd build