diff --git a/examples/libs/geo/providers/DebugMapsProvider.hpp b/examples/libs/geo/providers/DebugMapsProvider.hpp index 34ca18c3..3ede1fc9 100644 --- a/examples/libs/geo/providers/DebugMapsProvider.hpp +++ b/examples/libs/geo/providers/DebugMapsProvider.hpp @@ -44,7 +44,7 @@ namespace threepp { renderer->getClearColor(oldColor); renderer->setClearColor(Color(Color::green).lerpHSL(Color::red, static_cast(zoom - minZoom) / static_cast(maxZoom - minZoom))); - auto oldSize = renderer->getSize(); + auto oldSize = renderer->size(); renderer->setSize({resolution, resolution}); std::vector data(resolution * resolution * 4); @@ -56,7 +56,7 @@ namespace threepp { hud.needsUpdate(*text2); hud.apply(*renderer); - renderer->readPixels({}, renderer->getSize(), Format::RGBA, data.data()); + renderer->readPixels({}, renderer->size(), Format::RGBA, data.data()); renderer->setSize(oldSize); renderer->setClearColor(oldColor); renderer->clear(); diff --git a/include/threepp/renderers/GLRenderer.hpp b/include/threepp/renderers/GLRenderer.hpp index e6191883..ee063257 100644 --- a/include/threepp/renderers/GLRenderer.hpp +++ b/include/threepp/renderers/GLRenderer.hpp @@ -92,7 +92,7 @@ namespace threepp { void setPixelRatio(int value); - [[nodiscard]] WindowSize getSize() const; + [[nodiscard]] WindowSize size() const; void setSize(WindowSize size); diff --git a/src/threepp/renderers/GLRenderer.cpp b/src/threepp/renderers/GLRenderer.cpp index bf053911..b6ccabff 100644 --- a/src/threepp/renderers/GLRenderer.cpp +++ b/src/threepp/renderers/GLRenderer.cpp @@ -1209,7 +1209,7 @@ void GLRenderer::setPixelRatio(int value) { this->setSize({pimpl_->_size.width, pimpl_->_size.height}); } -WindowSize GLRenderer::getSize() const { +WindowSize GLRenderer::size() const { return pimpl_->_size; }