diff options
author | Antti Määttä <antti.maatta@qt.io> | 2016-08-12 12:21:33 +0300 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-08-13 08:06:19 +0000 |
commit | 01234b9cc117078563dfcbfd3ae149a9a4a97311 (patch) | |
tree | e3e48f0895393b9f9b8c7ce3d2431c8ddf7485fe /src/render/graphicshelpers/graphicscontext_p.h | |
parent | f0945707df16d1102b97eee15ff45efe48b46fca (diff) |
Add renderTargetSize query function
Implement renderTargetSize function, which queries the size of the current
render target. Change setViewport to use it.
Change-Id: I3e3125c9451ef3b86f91d78ceaf881e927ba48f9
Reviewed-by: Janne Koskinen <janne.p.koskinen@theqtcompany.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext_p.h')
-rw-r--r-- | src/render/graphicshelpers/graphicscontext_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicscontext_p.h b/src/render/graphicshelpers/graphicscontext_p.h index 1aa4c3e5a..07998c18b 100644 --- a/src/render/graphicshelpers/graphicscontext_p.h +++ b/src/render/graphicshelpers/graphicscontext_p.h @@ -140,6 +140,8 @@ public: void executeCommand(const RenderCommand *command); + QSize renderTargetSize(const QSize &surfaceSize) const; + /** * @brief activeShader * @return |