Remove inlines for set() methods

This commit is contained in:
Rob Loach
2022-06-08 10:49:04 -04:00
parent a49f765783
commit dd22b0aa59
24 changed files with 26 additions and 24 deletions

View File

@@ -53,6 +53,8 @@ class AudioStream : public ::AudioStream {
GETTERSETTER(unsigned int, SampleSize, sampleSize)
GETTERSETTER(unsigned int, Channels, channels)
/**
*
AudioStream& operator=(const ::AudioStream& stream) {
set(stream);
return *this;
@@ -178,7 +180,7 @@ class AudioStream : public ::AudioStream {
}
private:
inline void set(const ::AudioStream& stream) {
void set(const ::AudioStream& stream) {
buffer = stream.buffer;
sampleRate = stream.sampleRate;
sampleSize = stream.sampleSize;

View File

@@ -69,7 +69,7 @@ class BoundingBox : public ::BoundingBox {
}
private:
inline void set(const ::BoundingBox& box) {
void set(const ::BoundingBox& box) {
min = box.min;
max = box.max;
}

View File

@@ -61,7 +61,7 @@ class Camera2D : public ::Camera2D {
}
private:
inline void set(const ::Camera2D& camera) {
void set(const ::Camera2D& camera) {
offset = camera.offset;
target = camera.target;
rotation = camera.rotation;

View File

@@ -149,7 +149,7 @@ class Camera3D : public ::Camera3D {
}
private:
inline void set(const ::Camera3D& camera) {
void set(const ::Camera3D& camera) {
position = camera.position;
target = camera.target;
up = camera.up;

View File

@@ -245,7 +245,7 @@ class Color : public ::Color {
inline static Color RayWhite() { return RAYWHITE; }
private:
inline void set(const ::Color& color) {
void set(const ::Color& color) {
r = color.r;
g = color.g;
b = color.b;

View File

@@ -719,7 +719,7 @@ class Image : public ::Image {
}
private:
inline void set(const ::Image& image) {
void set(const ::Image& image) {
data = image.data;
width = image.width;
height = image.height;

View File

@@ -108,7 +108,7 @@ class Material : public ::Material {
}
private:
inline void set(const ::Material& material) {
void set(const ::Material& material) {
shader = material.shader;
maps = material.maps;
params[0] = material.params[0];

View File

@@ -191,7 +191,7 @@ class Matrix : public ::Matrix {
#endif
private:
inline void set(const ::Matrix& mat) {
void set(const ::Matrix& mat) {
m0 = mat.m0;
m1 = mat.m1;
m2 = mat.m2;

View File

@@ -283,7 +283,7 @@ class Mesh : public ::Mesh {
}
private:
inline void set(const ::Mesh& mesh) {
void set(const ::Mesh& mesh) {
vertexCount = mesh.vertexCount;
triangleCount = mesh.triangleCount;
vertices = mesh.vertices;

View File

@@ -221,7 +221,7 @@ class Model : public ::Model {
}
private:
inline void set(const ::Model& model) {
void set(const ::Model& model) {
transform = model.transform;
meshCount = model.meshCount;

View File

@@ -97,7 +97,7 @@ class ModelAnimation : public ::ModelAnimation {
}
private:
inline void set(const ::ModelAnimation& model) {
void set(const ::ModelAnimation& model) {
boneCount = model.boneCount;
bones = model.bones;
frameCount = model.frameCount;

View File

@@ -217,7 +217,7 @@ class Music : public ::Music {
}
private:
inline void set(const ::Music& music) {
void set(const ::Music& music) {
ctxType = music.ctxType;
ctxData = music.ctxData;
looping = music.looping;

View File

@@ -89,7 +89,7 @@ class Ray : public ::Ray {
}
private:
inline void set(const ::Ray& ray) {
void set(const ::Ray& ray) {
position = ray.position;
direction = ray.direction;
}

View File

@@ -51,7 +51,7 @@ class RayCollision : public ::RayCollision {
GETTERSETTER(::Vector3, Normal, normal)
private:
inline void set(const ::RayCollision& ray) {
void set(const ::RayCollision& ray) {
hit = ray.hit;
distance = ray.distance;
point = ray.point;

View File

@@ -159,7 +159,7 @@ class Rectangle : public ::Rectangle {
}
private:
inline void set(const ::Rectangle& rect) {
void set(const ::Rectangle& rect) {
x = rect.x;
y = rect.y;
width = rect.width;

View File

@@ -106,7 +106,7 @@ class RenderTexture : public ::RenderTexture {
}
private:
inline void set(const ::RenderTexture& renderTexture) {
void set(const ::RenderTexture& renderTexture) {
id = renderTexture.id;
texture = renderTexture.texture;
depth = renderTexture.depth;

View File

@@ -170,7 +170,7 @@ class Shader : public ::Shader {
}
private:
inline void set(const ::Shader& shader) {
void set(const ::Shader& shader) {
id = shader.id;
locs = shader.locs;
}

View File

@@ -202,7 +202,7 @@ class Sound : public ::Sound {
}
private:
inline void set(const ::Sound& sound) {
void set(const ::Sound& sound) {
frameCount = sound.frameCount;
stream = sound.stream;
}

View File

@@ -307,7 +307,7 @@ class Texture : public ::Texture {
}
private:
inline void set(const ::Texture& texture) {
void set(const ::Texture& texture) {
id = texture.id;
width = texture.width;
height = texture.height;

View File

@@ -316,7 +316,7 @@ class Vector2 : public ::Vector2 {
}
private:
inline void set(const ::Vector2& vec) {
void set(const ::Vector2& vec) {
x = vec.x;
y = vec.y;
}

View File

@@ -299,7 +299,7 @@ class Vector3 : public ::Vector3 {
}
private:
inline void set(const ::Vector3& vec) {
void set(const ::Vector3& vec) {
x = vec.x;
y = vec.y;
z = vec.z;

View File

@@ -154,7 +154,7 @@ class Vector4 : public ::Vector4 {
}
private:
inline void set(const ::Vector4& vec4) {
void set(const ::Vector4& vec4) {
x = vec4.x;
y = vec4.y;
z = vec4.z;

View File

@@ -52,7 +52,7 @@ class VrStereoConfig : public ::VrStereoConfig {
}
private:
inline void set(const ::VrStereoConfig& config) {
void set(const ::VrStereoConfig& config) {
projection[0] = config.projection[0];
viewOffset[1] = config.viewOffset[1];
projection[0] = config.projection[0];

View File

@@ -211,7 +211,7 @@ class Wave : public ::Wave {
}
private:
inline void set(const ::Wave& wave) {
void set(const ::Wave& wave) {
frameCount = wave.frameCount;
sampleRate = wave.sampleRate;
sampleSize = wave.sampleSize;