Adopt cpplint

This commit is contained in:
Rob Loach
2020-10-25 16:27:09 -04:00
parent 43dbffc5fe
commit f5b1dd7ffa
58 changed files with 4143 additions and 3415 deletions

View File

@@ -1,55 +1,78 @@
/**
* \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();
*
* raylib::Color::RayWhite.ClearBackground();
*
* 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
*/
* 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();
*
* raylib::Color::RayWhite.ClearBackground();
*
* 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_HPP_
#define RAYLIB_CPP_HPP_
#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 yet.
}
// Nothing.
} // namespace raylib
#include "./AudioDevice.hpp"
#include "./AudioStream.hpp"
@@ -82,4 +105,4 @@ namespace raylib {
#include "./Wave.hpp"
#include "./Window.hpp"
#endif
#endif // RAYLIB_CPP_INCLUDE_RAYLIB_CPP_HPP_