raylib-cpp-template/include/raylib-cpp.hpp
Jonathan Moallem 85f1dd7a1e Initial commit
2020-11-19 14:55:38 +11:00

109 lines
3.1 KiB
C++

/**
* LICENSE: zlib/libpng
*
* raylib-cpp is licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software:
*
* Copyright 2020 Rob Loach (@RobLoach)
*
* This software is provided "as-is", without any express or implied warranty. In no event
* will the authors be held liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose, including commercial
* applications, and to alter it and redistribute it freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not claim that you
* wrote the original software. If you use this software in a product, an acknowledgment
* in the product documentation would be appreciated but is not required.
*
* 2. Altered source versions must be plainly marked as such, and must not be misrepresented
* as being the original software.
*
* 3. This notice may not be removed or altered from any source distribution.
*
* \mainpage raylib-cpp
*
* [raylib-cpp](https://github.com/robloach/raylib-cpp) is a C++ wrapper library for raylib, a simple and easy-to-use library to enjoy videogames programming. This C++ header provides object-oriented wrappers around raylib's struct interfaces.
*
* See the ::raylib namespace for all available classes.
*
* @code
* #include "raylib-cpp.hpp"
*
* int main()
* {
* int screenWidth = 800;
* int screenHeight = 450;
*
* raylib::Window w(screenWidth, screenHeight, "raylib-cpp - basic window");
* raylib::Texture logo("raylib_logo.png");
*
* SetTargetFPS(60);
*
* while (!w.ShouldClose())
* {
* BeginDrawing();
*
* ClearBackground(RAYWHITE);
*
* DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
*
* // Object methods.
* logo.Draw(
* screenWidth / 2 - texture.getWidth() / 2,
* screenHeight / 2 - texture.getHeight() / 2);
*
* EndDrawing();
* }
*
* // UnloadTexture() and CloseWindow() are called automatically.
*
* return 0;
* }
* @endcode
*
*/
#ifndef RAYLIB_CPP_INCLUDE_RAYLIB_CPP_HPP_
#define RAYLIB_CPP_INCLUDE_RAYLIB_CPP_HPP_
/**
* Provides all the classes associated with raylib-cpp.
*/
namespace raylib {
// Nothing.
} // namespace raylib
#include "./AudioDevice.hpp"
#include "./AudioStream.hpp"
#include "./BoundingBox.hpp"
#include "./Camera2D.hpp"
#include "./Camera3D.hpp"
#include "./Color.hpp"
#include "./DroppedFiles.hpp"
#include "./Font.hpp"
#include "./Gamepad.hpp"
#include "./Image.hpp"
#include "./Material.hpp"
#include "./Matrix.hpp"
#include "./Mesh.hpp"
#include "./Model.hpp"
#include "./ModelAnimation.hpp"
#include "./Mouse.hpp"
#include "./Music.hpp"
#include "./Ray.hpp"
#include "./RayHitInfo.hpp"
#include "./Rectangle.hpp"
#include "./RenderTexture.hpp"
#include "./Shader.hpp"
#include "./Sound.hpp"
#include "./Texture.hpp"
#include "./Vector2.hpp"
#include "./Vector3.hpp"
#include "./Vector4.hpp"
#include "./VrSimulator.hpp"
#include "./Wave.hpp"
#include "./Window.hpp"
#endif // RAYLIB_CPP_INCLUDE_RAYLIB_CPP_HPP_