summaryrefslogtreecommitdiff
path: root/game/scenary/plant.h
blob: 7f964eb517f89b921f8b504fc70c3f83e03fcaf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "foliage.h"
#include "gfx/renderable.h"
#include "location.hpp"

class Plant : public Renderable {
	std::shared_ptr<const Foliage> type;
	Location position;

	void render(const SceneShader & shader) const override;
	void shadows(const ShadowMapper & shadowMapper) const override;

public:
	Plant(std::shared_ptr<const Foliage> type, Location position) : type(std::move(type)), position(position) { }
};