summaryrefslogtreecommitdiff
path: root/themes/src/summer/SummerTheme.h
blob: dad4ac9fe74186d986a099552c2a7722198d060b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "../types.h"
#include "../Renderer2d.h"
#include <vector>

struct Sun {
    f32 radius = 20.f;
	i32 sectors = 180;
	Mesh2D mesh;

	void load(Renderer2d* renderer);
	void update(f32 dtSeconds);
	void render(Renderer2d* renderer);
	void unload();
};

struct SummerTheme {
	Sun sun;
	void load(Renderer2d*, WebglContext*);
	void update(f32 dtSeconds);
	void render(Renderer2d* renderer);
	void unload();
};