blob: 8a8bdafb4642801bc4476f0efe3d52e65f5c0f30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "glArrays.h"
#include <glm/vec2.hpp>
#include <special_members.hpp>
class TestRenderOutput {
public:
TestRenderOutput(glm::ivec2 size = {640, 480});
virtual ~TestRenderOutput() = default;
NO_MOVE(TestRenderOutput);
NO_COPY(TestRenderOutput);
const glm::ivec2 size;
glFrameBuffer output;
glRenderBuffer depth;
glTexture outImage;
};
template<glm::ivec2 Size> class TestRenderOutputSize : public TestRenderOutput {
public:
TestRenderOutputSize() : TestRenderOutput {Size} { }
};
|