summaryrefslogtreecommitdiff
path: root/ui/sceneRenderer.h
blob: 2e1c3725d4c072c6ed3b8b31f4fd38ed617fad14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "gfx/gl/shader.h"
#include "lib/glArrays.h"
#include <functional>

class SceneRenderer {
public:
	SceneRenderer(glm::ivec2 size);

	void render(std::function<void()> content) const;

private:
	glFrameBuffer gBuffer;
	glTexture gPosition, gNormal, gAlbedoSpec;
	glRenderBuffer depth;
	ProgramHandleBase lighting;
};