mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
Merge pull request #259 from Bigfoot71/master
Changing access modifiers to `protected`
This commit is contained in:
@@ -211,7 +211,7 @@ class AudioStream : public ::AudioStream {
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::AudioStream& stream) {
|
||||
buffer = stream.buffer;
|
||||
processor = stream.processor;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -112,7 +112,7 @@ class Gamepad {
|
||||
return SetGamepadMappings(mappings.c_str());
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
inline void set(int gamepadNumber) {
|
||||
number = gamepadNumber;
|
||||
}
|
||||
|
||||
@@ -726,7 +726,7 @@ class Image : public ::Image {
|
||||
return ::IsImageReady(*this);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Image& image) {
|
||||
data = image.data;
|
||||
width = image.width;
|
||||
|
||||
@@ -116,7 +116,7 @@ class Material : public ::Material {
|
||||
return ::IsMaterialReady(*this);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Material& material) {
|
||||
shader = material.shader;
|
||||
maps = material.maps;
|
||||
|
||||
@@ -205,7 +205,7 @@ class Matrix : public ::Matrix {
|
||||
|
||||
#endif
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Matrix& mat) {
|
||||
m0 = mat.m0;
|
||||
m1 = mat.m1;
|
||||
|
||||
@@ -266,7 +266,7 @@ class Mesh : public ::Mesh {
|
||||
return ::LoadModelFromMesh(*this);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Mesh& mesh) {
|
||||
vertexCount = mesh.vertexCount;
|
||||
triangleCount = mesh.triangleCount;
|
||||
|
||||
@@ -220,7 +220,7 @@ class Model : public ::Model {
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Model& model) {
|
||||
transform = model.transform;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -223,7 +223,7 @@ class Music : public ::Music {
|
||||
return ::IsMusicReady(*this);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Music& music) {
|
||||
stream = music.stream;
|
||||
frameCount = music.frameCount;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -127,7 +127,7 @@ class RenderTexture : public ::RenderTexture {
|
||||
return ::IsRenderTextureReady(*this);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::RenderTexture& renderTexture) {
|
||||
id = renderTexture.id;
|
||||
texture = renderTexture.texture;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -198,7 +198,7 @@ class Sound : public ::Sound {
|
||||
return ::IsSoundReady(*this);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Sound& sound) {
|
||||
frameCount = sound.frameCount;
|
||||
stream = sound.stream;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -161,7 +161,7 @@ class Vector4 : public ::Vector4 {
|
||||
return ColorFromNormalized();
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Vector4& vec4) {
|
||||
x = vec4.x;
|
||||
y = vec4.y;
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -215,7 +215,7 @@ class Wave : public ::Wave {
|
||||
return ::IsWaveReady(*this);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void set(const ::Wave& wave) {
|
||||
frameCount = wave.frameCount;
|
||||
sampleRate = wave.sampleRate;
|
||||
|
||||
Reference in New Issue
Block a user