summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/testRenderOutput.cpp2
-rw-r--r--test/testRenderOutput.h12
2 files changed, 12 insertions, 2 deletions
diff --git a/test/testRenderOutput.cpp b/test/testRenderOutput.cpp
index 2a94a1b..464b0b3 100644
--- a/test/testRenderOutput.cpp
+++ b/test/testRenderOutput.cpp
@@ -1,7 +1,7 @@
#include "testRenderOutput.h"
#include <stdexcept>
-TestRenderOutput::TestRenderOutput() : size {640, 480}
+TestRenderOutput::TestRenderOutput(glm::ivec2 s) : size {s}
{
glBindFramebuffer(GL_FRAMEBUFFER, output);
const auto configuregdata
diff --git a/test/testRenderOutput.h b/test/testRenderOutput.h
index 0d97ef1..8a8bdaf 100644
--- a/test/testRenderOutput.h
+++ b/test/testRenderOutput.h
@@ -2,12 +2,22 @@
#include "glArrays.h"
#include <glm/vec2.hpp>
+#include <special_members.hpp>
class TestRenderOutput {
public:
- TestRenderOutput();
+ 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} { }
+};