summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2020-10-28 20:35:44 +0100
committerRay <[email protected]>2020-10-28 20:35:44 +0100
commit2bcd3a6df514525e4d6d4861ad40efa27d0d55ce (patch)
treeb5814033531d3ec6579e2569c2595227021f4284 /examples
parentd99ac093d4937ce7e7088973c70458d323c7b30d (diff)
downloadraylib-2bcd3a6df514525e4d6d4861ad40efa27d0d55ce.tar.gz
raylib-2bcd3a6df514525e4d6d4861ad40efa27d0d55ce.zip
Simplified example and resources sizes
Diffstat (limited to 'examples')
-rw-r--r--examples/models/models_yaw_pitch_roll.c16
-rw-r--r--examples/models/resources/angle_gauge.pngbin12919 -> 10205 bytes
-rw-r--r--examples/models/resources/background.pngbin16574 -> 4408 bytes
-rw-r--r--examples/models/resources/pitch.pngbin45945 -> 17370 bytes
-rw-r--r--examples/models/resources/plane.pngbin4810 -> 1782 bytes
-rw-r--r--examples/models/resources/plane_diffuse.pngbin301756 -> 301650 bytes
6 files changed, 8 insertions, 8 deletions
diff --git a/examples/models/models_yaw_pitch_roll.c b/examples/models/models_yaw_pitch_roll.c
index 77f80063..fdd0d6d9 100644
--- a/examples/models/models_yaw_pitch_roll.c
+++ b/examples/models/models_yaw_pitch_roll.c
@@ -114,23 +114,23 @@ int main(void)
// Draw framebuffer texture (Ahrs Display)
int centerX = framebuffer.texture.width/2;
int centerY = framebuffer.texture.height/2;
- float scaleFactor = 0.5f;
BeginTextureMode(framebuffer);
-
+
+ ClearBackground(RAYWHITE);
BeginBlendMode(BLEND_ALPHA);
DrawTexturePro(texBackground, (Rectangle){ 0, 0, texBackground.width, texBackground.height },
- (Rectangle){ centerX, centerY, texBackground.width*scaleFactor, texBackground.height*scaleFactor},
- (Vector2){ texBackground.width/2*scaleFactor, texBackground.height/2*scaleFactor + pitchOffset*scaleFactor }, roll, WHITE);
+ (Rectangle){ centerX, centerY, texBackground.width, texBackground.height},
+ (Vector2){ texBackground.width/2, texBackground.height/2 + pitchOffset }, roll, WHITE);
DrawTexturePro(texPitch, (Rectangle){ 0, 0, texPitch.width, texPitch.height },
- (Rectangle){ centerX, centerY, texPitch.width*scaleFactor, texPitch.height*scaleFactor },
- (Vector2){ texPitch.width/2*scaleFactor, texPitch.height/2*scaleFactor + pitchOffset*scaleFactor }, roll, WHITE);
+ (Rectangle){ centerX, centerY, texPitch.width, texPitch.height },
+ (Vector2){ texPitch.width/2, texPitch.height/2 + pitchOffset }, roll, WHITE);
DrawTexturePro(texPlane, (Rectangle){ 0, 0, texPlane.width, texPlane.height },
- (Rectangle){ centerX, centerY, texPlane.width*scaleFactor, texPlane.height*scaleFactor },
- (Vector2){ texPlane.width/2*scaleFactor, texPlane.height/2*scaleFactor }, 0, WHITE);
+ (Rectangle){ centerX, centerY, texPlane.width, texPlane.height },
+ (Vector2){ texPlane.width/2, texPlane.height/2 }, 0, WHITE);
EndBlendMode();
diff --git a/examples/models/resources/angle_gauge.png b/examples/models/resources/angle_gauge.png
index f7871de6..810097d7 100644
--- a/examples/models/resources/angle_gauge.png
+++ b/examples/models/resources/angle_gauge.png
Binary files differ
diff --git a/examples/models/resources/background.png b/examples/models/resources/background.png
index 69a74b72..88ece1fc 100644
--- a/examples/models/resources/background.png
+++ b/examples/models/resources/background.png
Binary files differ
diff --git a/examples/models/resources/pitch.png b/examples/models/resources/pitch.png
index 6d7a2336..82f89cd1 100644
--- a/examples/models/resources/pitch.png
+++ b/examples/models/resources/pitch.png
Binary files differ
diff --git a/examples/models/resources/plane.png b/examples/models/resources/plane.png
index 58951ea3..b4151384 100644
--- a/examples/models/resources/plane.png
+++ b/examples/models/resources/plane.png
Binary files differ
diff --git a/examples/models/resources/plane_diffuse.png b/examples/models/resources/plane_diffuse.png
index 8cf75c7d..c02a9e2f 100644
--- a/examples/models/resources/plane_diffuse.png
+++ b/examples/models/resources/plane_diffuse.png
Binary files differ