blob: 6e6fe2b4d16d049b6573ceddc531a2982cae84e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "AutumnTheme.hpp"
#include "../Renderer2d.h"
void AutumnTheme::load(Renderer2d* renderer) {
renderer->clearColor = Vector4(252, 210, 153, 255).toNormalizedColor();
auto lr = tree.load(renderer);
leafParticles.load(renderer, &lr);
}
void AutumnTheme::update(f32 dtSeconds) {
tree.update(dtSeconds);
leafParticles.update(dtSeconds);
}
void AutumnTheme::render(Renderer2d* renderer) {
tree.render(renderer);
leafParticles.render(renderer);
}
void AutumnTheme::unload() {
tree.unload();
leafParticles.unload();
}
|