Pārlūkot izejas kodu

Simplified example and resources sizes

pull/1416/head
Ray pirms 5 gadiem
vecāks
revīzija
2bcd3a6df5
6 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. +8
    -8
      examples/models/models_yaw_pitch_roll.c
  2. Binārs
      examples/models/resources/angle_gauge.png
  3. Binārs
      examples/models/resources/background.png
  4. Binārs
      examples/models/resources/pitch.png
  5. Binārs
      examples/models/resources/plane.png
  6. Binārs
      examples/models/resources/plane_diffuse.png

+ 8
- 8
examples/models/models_yaw_pitch_roll.c Parādīt failu

@ -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.widtho">*scaleFactor, texBackground.height*scaleFactor},
(Vector2){ texBackground.width/2o">*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.widtho">*scaleFactor, texPitch.height*scaleFactor },
(Vector2){ texPitch.width/2o">*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.widtho">*scaleFactor, texPlane.height*scaleFactor },
(Vector2){ texPlane.width/2o">*scaleFactor, texPlane.height/2*scaleFactor }, 0, WHITE);
(Rectangle){ centerX, centerY, texPlane.width, texPlane.height },
(Vector2){ texPlane.width/2, texPlane.height/2 }, 0, WHITE);
EndBlendMode();

Binārs
examples/models/resources/angle_gauge.png Parādīt failu

Pirms Pēc
Platums: 128  |  Augstums: 128  |  Izmērs: 13 KiB Platums: 128  |  Augstums: 128  |  Izmērs: 10 KiB

Binārs
examples/models/resources/background.png Parādīt failu

Pirms Pēc
Platums: 1024  |  Augstums: 2048  |  Izmērs: 16 KiB Platums: 512  |  Augstums: 1024  |  Izmērs: 4.3 KiB

Binārs
examples/models/resources/pitch.png Parādīt failu

Pirms Pēc
Platums: 1024  |  Augstums: 2048  |  Izmērs: 45 KiB Platums: 512  |  Augstums: 1024  |  Izmērs: 17 KiB

Binārs
examples/models/resources/plane.png Parādīt failu

Pirms Pēc
Platums: 512  |  Augstums: 128  |  Izmērs: 4.7 KiB Platums: 256  |  Augstums: 64  |  Izmērs: 1.7 KiB

Binārs
examples/models/resources/plane_diffuse.png Parādīt failu

Pirms Pēc
Platums: 512  |  Augstums: 512  |  Izmērs: 295 KiB Platums: 512  |  Augstums: 512  |  Izmērs: 295 KiB

Notiek ielāde…
Atcelt
Saglabāt