blob: 1c01069624435c2bc18cd81472927ec838c24af1 (
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/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;
glVertexArray displayVAO;
glBuffer displayVBO;
};
|