LedMatrix::LedMatrix(const QSize size, const QSize panelSize, const QSize matrixSize, QObject *parent) : QObject(parent), _panelSize(panelSize), _matrixSize(matrixSize), _port(NULL), _connected(false) { _port = new QextSerialPort(); prepareFramebuffer(); computeLookUpTable(); }
/** @brief Iterate Functional Test cases. * * @return Iteration result. */ tcu::TestCase::IterateResult TextureCubeMapArrayETC2Support::iterate(void) { prepareFramebuffer(); prepareProgram(); prepareVertexArrayObject(); prepareTexture(); draw(); if (isRenderedImageValid()) m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass"); else m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Fail"); clean(); return STOP; }
Scene::Scene(std::shared_ptr<NUGL::ShaderProgram> screenProgram, std::shared_ptr<NUGL::ShaderProgram> screenAlphaProgram, glm::ivec2 windowSize, glm::ivec2 framebufferSize) : camera(std::make_unique<PlayerCamera>()) { shadowMapSize = 2048; reflectionMapSize = 512; this->windowSize = windowSize; this->framebufferSize = framebufferSize; prepareFramebuffer(windowSize); prepareShadowMapFramebuffer(shadowMapSize); prepareReflectionFramebuffer(reflectionMapSize); prepareGBuffer(windowSize); screen = std::make_unique<utility::PostprocessingScreen>(screenProgram, screenAlphaProgram); }