From 56e58d72a534da1742d8060a7ed9020182bef1c1 Mon Sep 17 00:00:00 2001 From: TokyoSU <77746747+TokyoSU@users.noreply.github.com> Date: Sun, 3 Jul 2022 19:12:00 +0200 Subject: [PATCH] Added using Remove the use to add raylib::Something --- include/AudioDevice.hpp | 1 + include/AudioStream.hpp | 1 + include/BoundingBox.hpp | 1 + include/Camera2D.hpp | 1 + include/Camera3D.hpp | 2 ++ include/Color.hpp | 1 + include/Font.hpp | 1 + include/Gamepad.hpp | 1 + include/Image.hpp | 1 + include/Material.hpp | 1 + include/Matrix.hpp | 2 +- include/Mesh.hpp | 1 + include/Model.hpp | 1 + include/ModelAnimation.hpp | 1 + include/Mouse.hpp | 1 + include/Music.hpp | 1 + include/Physics.hpp | 1 + include/Ray.hpp | 1 + include/RayCollision.hpp | 1 + include/Rectangle.hpp | 1 + include/RenderTexture.hpp | 2 ++ include/Shader.hpp | 1 + include/Sound.hpp | 1 + include/Text.hpp | 1 + include/Texture.hpp | 3 +++ include/Vector2.hpp | 1 + include/Vector3.hpp | 1 + include/Vector4.hpp | 2 ++ include/VrStereoConfig.hpp | 1 + include/Wave.hpp | 1 + include/Window.hpp | 1 + 31 files changed, 36 insertions(+), 1 deletion(-) diff --git a/include/AudioDevice.hpp b/include/AudioDevice.hpp index 352af467..eec3edb7 100644 --- a/include/AudioDevice.hpp +++ b/include/AudioDevice.hpp @@ -66,5 +66,6 @@ class AudioDevice { } }; } // namespace raylib +using RAudioDevice = raylib::AudioDevice; #endif // RAYLIB_CPP_INCLUDE_AUDIODEVICE_HPP_ diff --git a/include/AudioStream.hpp b/include/AudioStream.hpp index 95178d53..ef0c0b3f 100644 --- a/include/AudioStream.hpp +++ b/include/AudioStream.hpp @@ -186,5 +186,6 @@ class AudioStream : public ::AudioStream { } }; } // namespace raylib +using RAudioStream = raylib::AudioStream; #endif // RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_ diff --git a/include/BoundingBox.hpp b/include/BoundingBox.hpp index 81d4c8f8..52dc3ef2 100644 --- a/include/BoundingBox.hpp +++ b/include/BoundingBox.hpp @@ -75,5 +75,6 @@ class BoundingBox : public ::BoundingBox { } }; } // namespace raylib +using RBoundingBox = raylib::BoundingBox; #endif // RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_ diff --git a/include/Camera2D.hpp b/include/Camera2D.hpp index c2ec6589..edcd0e9f 100644 --- a/include/Camera2D.hpp +++ b/include/Camera2D.hpp @@ -69,5 +69,6 @@ class Camera2D : public ::Camera2D { } }; } // namespace raylib +using RCamera2D = raylib::Camera2D; #endif // RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_ diff --git a/include/Camera3D.hpp b/include/Camera3D.hpp index abd8d98e..fd52f4e5 100644 --- a/include/Camera3D.hpp +++ b/include/Camera3D.hpp @@ -160,5 +160,7 @@ class Camera3D : public ::Camera3D { typedef Camera3D Camera; } // namespace raylib +using RCamera = raylib::Camera; +using RCamera3D = raylib::Camera3D; #endif // RAYLIB_CPP_INCLUDE_CAMERA3D_HPP_ diff --git a/include/Color.hpp b/include/Color.hpp index 44a2f7d3..b8e65091 100644 --- a/include/Color.hpp +++ b/include/Color.hpp @@ -254,5 +254,6 @@ class Color : public ::Color { }; } // namespace raylib +using RColor = raylib::Color; #endif // RAYLIB_CPP_INCLUDE_COLOR_HPP_ diff --git a/include/Font.hpp b/include/Font.hpp index 21170c1e..87a5dd1e 100644 --- a/include/Font.hpp +++ b/include/Font.hpp @@ -247,5 +247,6 @@ class Font : public ::Font { } }; } // namespace raylib +using RFont = raylib::Font; #endif // RAYLIB_CPP_INCLUDE_FONT_HPP_ diff --git a/include/Gamepad.hpp b/include/Gamepad.hpp index b92d3538..5ac975fe 100644 --- a/include/Gamepad.hpp +++ b/include/Gamepad.hpp @@ -114,5 +114,6 @@ class Gamepad { } }; } // namespace raylib +using RGamepad = raylib::Gamepad; #endif // RAYLIB_CPP_INCLUDE_GAMEPAD_HPP_ diff --git a/include/Image.hpp b/include/Image.hpp index 4bb2a54f..380d3b5d 100644 --- a/include/Image.hpp +++ b/include/Image.hpp @@ -728,5 +728,6 @@ class Image : public ::Image { } }; } // namespace raylib +using RImage = raylib::Image; #endif // RAYLIB_CPP_INCLUDE_IMAGE_HPP_ diff --git a/include/Material.hpp b/include/Material.hpp index cefe3ec0..dc1b6b6e 100644 --- a/include/Material.hpp +++ b/include/Material.hpp @@ -118,5 +118,6 @@ class Material : public ::Material { } }; } // namespace raylib +using RMaterial = raylib::Material; #endif // RAYLIB_CPP_INCLUDE_MATERIAL_HPP_ diff --git a/include/Matrix.hpp b/include/Matrix.hpp index e0d238a0..591829ad 100644 --- a/include/Matrix.hpp +++ b/include/Matrix.hpp @@ -211,6 +211,6 @@ class Matrix : public ::Matrix { } }; } // namespace raylib - +using RMatrix = raylib::Matrix; #endif // RAYLIB_CPP_INCLUDE_MATRIX_HPP_ diff --git a/include/Mesh.hpp b/include/Mesh.hpp index f74a281d..cb56f89f 100644 --- a/include/Mesh.hpp +++ b/include/Mesh.hpp @@ -302,5 +302,6 @@ class Mesh : public ::Mesh { } }; } // namespace raylib +using RMesh = raylib::Mesh; #endif // RAYLIB_CPP_INCLUDE_MESH_HPP_ diff --git a/include/Model.hpp b/include/Model.hpp index a5164bc0..df00458c 100644 --- a/include/Model.hpp +++ b/include/Model.hpp @@ -237,5 +237,6 @@ class Model : public ::Model { }; } // namespace raylib +using RModel = raylib::Model; #endif // RAYLIB_CPP_INCLUDE_MODEL_HPP_ diff --git a/include/ModelAnimation.hpp b/include/ModelAnimation.hpp index 24eb73c0..7b57a9dc 100644 --- a/include/ModelAnimation.hpp +++ b/include/ModelAnimation.hpp @@ -105,5 +105,6 @@ class ModelAnimation : public ::ModelAnimation { } }; } // namespace raylib +using RModelAnimation = raylib::ModelAnimation; #endif // RAYLIB_CPP_INCLUDE_MODELANIMATION_HPP_ diff --git a/include/Mouse.hpp b/include/Mouse.hpp index 01c278d4..fbd27791 100644 --- a/include/Mouse.hpp +++ b/include/Mouse.hpp @@ -114,5 +114,6 @@ class Mouse { } }; } // namespace raylib +using RMouse = raylib::Mouse; #endif // RAYLIB_CPP_INCLUDE_MOUSE_HPP_ diff --git a/include/Music.hpp b/include/Music.hpp index c1e4682c..e7e630d4 100644 --- a/include/Music.hpp +++ b/include/Music.hpp @@ -226,5 +226,6 @@ class Music : public ::Music { } }; } // namespace raylib +using RMusic = raylib::Music; #endif // RAYLIB_CPP_INCLUDE_MUSIC_HPP_ diff --git a/include/Physics.hpp b/include/Physics.hpp index c9feb176..15739b33 100644 --- a/include/Physics.hpp +++ b/include/Physics.hpp @@ -117,5 +117,6 @@ class Physics { } }; } // namespace raylib +using RPhysics = raylib::Physics; #endif // RAYLIB_CPP_INCLUDE_PHYSICS_HPP_ diff --git a/include/Ray.hpp b/include/Ray.hpp index 7bf5cbe4..bafec289 100644 --- a/include/Ray.hpp +++ b/include/Ray.hpp @@ -95,5 +95,6 @@ class Ray : public ::Ray { } }; } // namespace raylib +using RRay = raylib::Ray; #endif // RAYLIB_CPP_INCLUDE_RAY_HPP_ diff --git a/include/RayCollision.hpp b/include/RayCollision.hpp index 98111b79..ba80f296 100644 --- a/include/RayCollision.hpp +++ b/include/RayCollision.hpp @@ -80,5 +80,6 @@ class RayCollision : public ::RayCollision { } }; } // namespace raylib +using RRayCollision = raylib::RayCollision; #endif // RAYLIB_CPP_INCLUDE_RAYCOLLISION_HPP_ diff --git a/include/Rectangle.hpp b/include/Rectangle.hpp index b51e7990..490576bb 100644 --- a/include/Rectangle.hpp +++ b/include/Rectangle.hpp @@ -167,5 +167,6 @@ class Rectangle : public ::Rectangle { } }; } // namespace raylib +using RRectangle = raylib::Rectangle; #endif // RAYLIB_CPP_INCLUDE_RECTANGLE_HPP_ diff --git a/include/RenderTexture.hpp b/include/RenderTexture.hpp index fd8f7d0c..4f17158c 100644 --- a/include/RenderTexture.hpp +++ b/include/RenderTexture.hpp @@ -114,5 +114,7 @@ class RenderTexture : public ::RenderTexture { }; typedef RenderTexture RenderTexture2D; } // namespace raylib +using RRenderTexture = raylib::RenderTexture; +using RRenderTexture2D = raylib::RenderTexture2D; #endif // RAYLIB_CPP_INCLUDE_RENDERTEXTURE_HPP_ diff --git a/include/Shader.hpp b/include/Shader.hpp index 52a57597..87d88c8b 100644 --- a/include/Shader.hpp +++ b/include/Shader.hpp @@ -176,5 +176,6 @@ class Shader : public ::Shader { } }; } // namespace raylib +using RShader = raylib::Shader; #endif // RAYLIB_CPP_INCLUDE_SHADER_HPP_ diff --git a/include/Sound.hpp b/include/Sound.hpp index 9269b275..c5270694 100644 --- a/include/Sound.hpp +++ b/include/Sound.hpp @@ -208,5 +208,6 @@ class Sound : public ::Sound { } }; } // namespace raylib +using RSound = raylib::Sound; #endif // RAYLIB_CPP_INCLUDE_SOUND_HPP_ diff --git a/include/Text.hpp b/include/Text.hpp index eeb65148..1090c8f8 100644 --- a/include/Text.hpp +++ b/include/Text.hpp @@ -206,5 +206,6 @@ class Text { } }; } // namespace raylib +using RText = raylib::Text; #endif // RAYLIB_CPP_INCLUDE_TEXT_HPP_ diff --git a/include/Texture.hpp b/include/Texture.hpp index 5ec3e48b..4fe473bf 100644 --- a/include/Texture.hpp +++ b/include/Texture.hpp @@ -321,5 +321,8 @@ typedef Texture Texture2D; typedef Texture TextureCubemap; } // namespace raylib +using RTexture = raylib::Texture; +using RTexture2D = raylib::Texture2D; +using RTextureCubemap = raylib::TextureCubemap; #endif // RAYLIB_CPP_INCLUDE_TEXTURE_HPP_ diff --git a/include/Vector2.hpp b/include/Vector2.hpp index 35f8dddb..f28a31f2 100644 --- a/include/Vector2.hpp +++ b/include/Vector2.hpp @@ -391,5 +391,6 @@ class Vector2 : public ::Vector2 { }; } // namespace raylib +using RVector2 = raylib::Vector2; #endif // RAYLIB_CPP_INCLUDE_VECTOR2_HPP_ diff --git a/include/Vector3.hpp b/include/Vector3.hpp index 96713439..5e8b9d8b 100644 --- a/include/Vector3.hpp +++ b/include/Vector3.hpp @@ -362,5 +362,6 @@ class Vector3 : public ::Vector3 { } }; } // namespace raylib +using RVector3 = raylib::Vector3; #endif // RAYLIB_CPP_INCLUDE_VECTOR3_HPP_ diff --git a/include/Vector4.hpp b/include/Vector4.hpp index 938b35f6..2fcb68fb 100644 --- a/include/Vector4.hpp +++ b/include/Vector4.hpp @@ -165,5 +165,7 @@ class Vector4 : public ::Vector4 { // Alias the Vector4 as Quaternion. typedef Vector4 Quaternion; } // namespace raylib +using RVector4 = raylib::Vector4; +using RQuaternion = raylib::Quaternion; #endif // RAYLIB_CPP_INCLUDE_VECTOR4_HPP_ diff --git a/include/VrStereoConfig.hpp b/include/VrStereoConfig.hpp index b0d761ba..e158675c 100644 --- a/include/VrStereoConfig.hpp +++ b/include/VrStereoConfig.hpp @@ -72,5 +72,6 @@ class VrStereoConfig : public ::VrStereoConfig { } }; } // namespace raylib +using RVrStereoConfig = raylib::VrStereoConfig; #endif // RAYLIB_CPP_INCLUDE_VRSTEREOCONFIG_HPP_ diff --git a/include/Wave.hpp b/include/Wave.hpp index 3f99256b..be5d052b 100644 --- a/include/Wave.hpp +++ b/include/Wave.hpp @@ -221,5 +221,6 @@ class Wave : public ::Wave { }; } // namespace raylib +using RWave = raylib::Wave; #endif // RAYLIB_CPP_INCLUDE_WAVE_HPP_ diff --git a/include/Window.hpp b/include/Window.hpp index 18a224d4..5170f057 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -359,5 +359,6 @@ class Window { } }; } // namespace raylib +using RWindow = raylib::Window; #endif // RAYLIB_CPP_INCLUDE_WINDOW_HPP_