MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / Resize

Method Resize

src/Nazara/Graphics/DeferredRenderTechnique.cpp:544–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542 */
543
544 bool DeferredRenderTechnique::Resize(const Vector2ui& dimensions) const
545 {
546 try
547 {
548 ErrorFlags errFlags(ErrorFlag_ThrowException);
549
550 for (auto& passIt : m_passes)
551 for (auto& passIt2 : passIt.second)
552 passIt2.second->Resize(dimensions);
553
554 m_GBufferSize = dimensions;
555
556 return true;
557 }
558 catch (const std::exception& e)
559 {
560 NazaraError("Failed to create work RTT/G-Buffer: " + String(e.what()));
561 return false;
562 }
563 }
564
565 /*!
566 * \brief Initializes the deferred render technique

Callers 1

SetPassMethod · 0.45

Calls 1

StringClass · 0.50

Tested by

no test coverage detected