diff --git a/include/AudioStream.hpp b/include/AudioStream.hpp index ccf07baf..c018ea5e 100644 --- a/include/AudioStream.hpp +++ b/include/AudioStream.hpp @@ -211,7 +211,7 @@ class AudioStream : public ::AudioStream { } } - private: + protected: void set(const ::AudioStream& stream) { buffer = stream.buffer; processor = stream.processor; diff --git a/include/BoundingBox.hpp b/include/BoundingBox.hpp index a651b75b..0f3aa615 100644 --- a/include/BoundingBox.hpp +++ b/include/BoundingBox.hpp @@ -70,7 +70,7 @@ class BoundingBox : public ::BoundingBox { return GetRayCollisionBox(ray, *this); } - private: + protected: void set(const ::BoundingBox& box) { min = box.min; max = box.max; diff --git a/include/Camera2D.hpp b/include/Camera2D.hpp index 1381de29..13ad78a8 100644 --- a/include/Camera2D.hpp +++ b/include/Camera2D.hpp @@ -60,7 +60,7 @@ class Camera2D : public ::Camera2D { return ::GetWorldToScreen2D(position, *this); } - private: + protected: void set(const ::Camera2D& camera) { offset = camera.offset; target = camera.target; diff --git a/include/Camera3D.hpp b/include/Camera3D.hpp index 52ebdf56..ac46082e 100644 --- a/include/Camera3D.hpp +++ b/include/Camera3D.hpp @@ -119,7 +119,7 @@ class Camera3D : public ::Camera3D { ::DrawBillboardRec(*this, texture, sourceRec, center, size, tint); } - private: + protected: void set(const ::Camera3D& camera) { position = camera.position; target = camera.target; diff --git a/include/Color.hpp b/include/Color.hpp index 783a7b6b..90057e90 100644 --- a/include/Color.hpp +++ b/include/Color.hpp @@ -244,7 +244,7 @@ class Color : public ::Color { inline static Color Magenta() { return MAGENTA; } inline static Color RayWhite() { return RAYWHITE; } - private: + protected: void set(const ::Color& color) { r = color.r; g = color.g; diff --git a/include/Font.hpp b/include/Font.hpp index e6bfdfad..3b49596c 100644 --- a/include/Font.hpp +++ b/include/Font.hpp @@ -287,7 +287,7 @@ class Font : public ::Font { return ::ImageTextEx(*this, text.c_str(), fontSize, spacing, tint); } - private: + protected: void set(const ::Font& font) { baseSize = font.baseSize; glyphCount = font.glyphCount; diff --git a/include/Gamepad.hpp b/include/Gamepad.hpp index b65e9268..bffa047e 100644 --- a/include/Gamepad.hpp +++ b/include/Gamepad.hpp @@ -112,7 +112,7 @@ class Gamepad { return SetGamepadMappings(mappings.c_str()); } - private: + protected: inline void set(int gamepadNumber) { number = gamepadNumber; } diff --git a/include/Image.hpp b/include/Image.hpp index 5bc7d087..ac20769b 100644 --- a/include/Image.hpp +++ b/include/Image.hpp @@ -726,7 +726,7 @@ class Image : public ::Image { return ::IsImageReady(*this); } - private: + protected: void set(const ::Image& image) { data = image.data; width = image.width; diff --git a/include/Material.hpp b/include/Material.hpp index d26b4088..e7c66fac 100644 --- a/include/Material.hpp +++ b/include/Material.hpp @@ -116,7 +116,7 @@ class Material : public ::Material { return ::IsMaterialReady(*this); } - private: + protected: void set(const ::Material& material) { shader = material.shader; maps = material.maps; diff --git a/include/Matrix.hpp b/include/Matrix.hpp index 66578623..a3376485 100644 --- a/include/Matrix.hpp +++ b/include/Matrix.hpp @@ -205,7 +205,7 @@ class Matrix : public ::Matrix { #endif - private: + protected: void set(const ::Matrix& mat) { m0 = mat.m0; m1 = mat.m1; diff --git a/include/Mesh.hpp b/include/Mesh.hpp index 876fd953..e45ec225 100644 --- a/include/Mesh.hpp +++ b/include/Mesh.hpp @@ -266,7 +266,7 @@ class Mesh : public ::Mesh { return ::LoadModelFromMesh(*this); } - private: + protected: void set(const ::Mesh& mesh) { vertexCount = mesh.vertexCount; triangleCount = mesh.triangleCount; diff --git a/include/Model.hpp b/include/Model.hpp index 52c8d209..0a124eea 100644 --- a/include/Model.hpp +++ b/include/Model.hpp @@ -220,7 +220,7 @@ class Model : public ::Model { } } - private: + protected: void set(const ::Model& model) { transform = model.transform; diff --git a/include/ModelAnimation.hpp b/include/ModelAnimation.hpp index a3a45554..d90b6d6e 100644 --- a/include/ModelAnimation.hpp +++ b/include/ModelAnimation.hpp @@ -96,7 +96,7 @@ class ModelAnimation : public ::ModelAnimation { return ::IsModelAnimationValid(model, *this); } - private: + protected: void set(const ::ModelAnimation& model) { boneCount = model.boneCount; frameCount = model.frameCount; diff --git a/include/Music.hpp b/include/Music.hpp index 4f1a0e58..3eb5079b 100644 --- a/include/Music.hpp +++ b/include/Music.hpp @@ -223,7 +223,7 @@ class Music : public ::Music { return ::IsMusicReady(*this); } - private: + protected: void set(const ::Music& music) { stream = music.stream; frameCount = music.frameCount; diff --git a/include/Ray.hpp b/include/Ray.hpp index 036683e3..615f2e9f 100644 --- a/include/Ray.hpp +++ b/include/Ray.hpp @@ -88,7 +88,7 @@ class Ray : public ::Ray { return ::GetMouseRay(::GetMousePosition(), camera); } - private: + protected: inline void set(const ::Ray& ray) { position = ray.position; direction = ray.direction; diff --git a/include/RayCollision.hpp b/include/RayCollision.hpp index 9821d228..4350af28 100644 --- a/include/RayCollision.hpp +++ b/include/RayCollision.hpp @@ -64,7 +64,7 @@ class RayCollision : public ::RayCollision { GETTERSETTER(::Vector3, Position, point) GETTERSETTER(::Vector3, Normal, normal) - private: + protected: void set(const ::RayCollision& ray) { hit = ray.hit; distance = ray.distance; diff --git a/include/Rectangle.hpp b/include/Rectangle.hpp index d3f30b89..661b1be0 100644 --- a/include/Rectangle.hpp +++ b/include/Rectangle.hpp @@ -146,7 +146,7 @@ class Rectangle : public ::Rectangle { return SetPosition(position.x, position.y); } - private: + protected: void set(const ::Rectangle& rect) { x = rect.x; y = rect.y; diff --git a/include/RenderTexture.hpp b/include/RenderTexture.hpp index 2190571b..3b8203b7 100644 --- a/include/RenderTexture.hpp +++ b/include/RenderTexture.hpp @@ -127,7 +127,7 @@ class RenderTexture : public ::RenderTexture { return ::IsRenderTextureReady(*this); } - private: + protected: void set(const ::RenderTexture& renderTexture) { id = renderTexture.id; texture = renderTexture.texture; diff --git a/include/Shader.hpp b/include/Shader.hpp index dae6feec..e277f341 100644 --- a/include/Shader.hpp +++ b/include/Shader.hpp @@ -183,7 +183,7 @@ class Shader : public ::Shader { return id != 0 && locs != nullptr; } - private: + protected: void set(const ::Shader& shader) { id = shader.id; locs = shader.locs; diff --git a/include/Sound.hpp b/include/Sound.hpp index 1b6fdd2e..ef52c47f 100644 --- a/include/Sound.hpp +++ b/include/Sound.hpp @@ -198,7 +198,7 @@ class Sound : public ::Sound { return ::IsSoundReady(*this); } - private: + protected: void set(const ::Sound& sound) { frameCount = sound.frameCount; stream = sound.stream; diff --git a/include/Vector2.hpp b/include/Vector2.hpp index 49d9d29a..3085caf5 100644 --- a/include/Vector2.hpp +++ b/include/Vector2.hpp @@ -432,7 +432,7 @@ class Vector2 : public ::Vector2 { return ::CheckCollisionPointLine(*this, p1, p2, threshold); } - private: + protected: void set(const ::Vector2& vec) { x = vec.x; y = vec.y; diff --git a/include/Vector3.hpp b/include/Vector3.hpp index f20d85e1..11520ef1 100644 --- a/include/Vector3.hpp +++ b/include/Vector3.hpp @@ -339,7 +339,7 @@ class Vector3 : public ::Vector3 { return CheckCollisionSpheres(*this, radius1, center2, radius2); } - private: + protected: void set(const ::Vector3& vec) { x = vec.x; y = vec.y; diff --git a/include/Vector4.hpp b/include/Vector4.hpp index 81b85cdd..9d788875 100644 --- a/include/Vector4.hpp +++ b/include/Vector4.hpp @@ -161,7 +161,7 @@ class Vector4 : public ::Vector4 { return ColorFromNormalized(); } - private: + protected: void set(const ::Vector4& vec4) { x = vec4.x; y = vec4.y; diff --git a/include/VrStereoConfig.hpp b/include/VrStereoConfig.hpp index e163d892..391a08af 100644 --- a/include/VrStereoConfig.hpp +++ b/include/VrStereoConfig.hpp @@ -51,7 +51,7 @@ class VrStereoConfig : public ::VrStereoConfig { ::UnloadVrStereoConfig(*this); } - private: + protected: void set(const ::VrStereoConfig& config) { projection[0] = config.projection[0]; projection[1] = config.projection[1]; diff --git a/include/Wave.hpp b/include/Wave.hpp index e5720655..35f7ae25 100644 --- a/include/Wave.hpp +++ b/include/Wave.hpp @@ -215,7 +215,7 @@ class Wave : public ::Wave { return ::IsWaveReady(*this); } - private: + protected: void set(const ::Wave& wave) { frameCount = wave.frameCount; sampleRate = wave.sampleRate;