summaryrefslogtreecommitdiff
path: root/test/testRenderOutput.h
blob: 79908b1a3a2473040d733d7f0c5a3350bd910f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "config/types.h"
#include "game/gamestate.h"
#include "glArrays.h"
#include <glm/vec2.hpp>
#include <special_members.h>

class TestRenderOutput {
public:
	explicit TestRenderOutput(TextureAbsCoord size = {640, 480});
	virtual ~TestRenderOutput() = default;

	NO_MOVE(TestRenderOutput);
	NO_COPY(TestRenderOutput);

	const TextureAbsCoord size;
	glFrameBuffer output;
	glRenderBuffer depth;
	glTexture outImage;
	GameState gameState;
};

template<TextureAbsCoord Size> class TestRenderOutputSize : public TestRenderOutput {
public:
	TestRenderOutputSize() : TestRenderOutput {Size} { }
};