summaryrefslogtreecommitdiff
path: root/themes/src/winter/WinterTheme.cpp
blob: 052670ef24da123f0c4e05f134d150643ebb15b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "WinterTheme.hpp"
#include "../Renderer2d.h"

WinterTheme::WinterTheme(WebglContext* context)
{
    renderer.load(context);
    load();
}

WinterTheme::~WinterTheme()
{
    unload();
}

void WinterTheme::load() {
    renderer.clearColor = Vector4(200, 229, 239, 255).toNormalizedColor();
	SnowflakeLoadParameters lp;
	spr.load(lp, &renderer);
}

void WinterTheme::update(f32 dtSeconds) {
	spr.update(dtSeconds);
}

void WinterTheme::render() {
    renderer.render();
	spr.render(&renderer);
}

void WinterTheme::unload()  {
	spr.unload();
}