mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-12-03 09:24:04 +00:00
Remove inlines for set() methods
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user