Added raylib-cpp header files to my project

This commit is contained in:
2024-01-31 21:01:35 -05:00
parent c83b347620
commit e6f328ea1d
38 changed files with 7356 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
/**
* C++ header to wrap raylib.h.
*/
#ifndef RAYLIB_CPP_INCLUDE_RAYLIB_HPP_
#define RAYLIB_CPP_INCLUDE_RAYLIB_HPP_
#ifdef __cplusplus
extern "C" {
#endif
#ifndef RAYLIB_H_FILE
#define RAYLIB_H_FILE "raylib.h"
#endif
#include RAYLIB_H_FILE // NOLINT
#if !defined(RAYLIB_VERSION_MAJOR) || !defined(RAYLIB_VERSION_MINOR)
#if RAYLIB_VERSION_MAJOR < 5
#error "raylib-cpp requires at least raylib 5.0.0"
#endif
#endif
#if RAYLIB_VERSION_MAJOR > 5
#error "raylib-cpp targets raylib 5. Use the `next` branch for the next version of raylib."
#endif
#ifdef __cplusplus
}
#endif
#endif // RAYLIB_CPP_INCLUDE_RAYLIB_HPP_