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

#include "gfx/gl/sceneShader.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;
	glVertexArray displayVAO;
	glBuffer displayVBO;
};