summaryrefslogtreecommitdiff
path: root/gfx/renderable.h
blob: 83522e33b00f2d1c7f55f1ff557473736728efc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <special_members.h>

class SceneShader;
class ShadowMapper;
class ShadowStenciller;

class Renderable {
public:
	Renderable() = default;
	virtual ~Renderable() = default;
	DEFAULT_MOVE_COPY(Renderable);

	virtual void render(const SceneShader & shader) const = 0;
	virtual void lights(const SceneShader & shader) const;
	virtual void shadows(const ShadowMapper & shadowMapper) const;

	virtual void updateStencil(const ShadowStenciller & lightDir) const;
};