From e36b0cb8f32fc4302499c87e5c2b4c1ecc7a6543 Mon Sep 17 00:00:00 2001 From: Thomas Szepe Date: Tue, 7 Apr 2015 18:32:25 +0200 Subject: BGE: New API method getDisplayDimensions This patch adds a new API function to get the actual display dimensions in pixels. Reviewers: dfelinto, sybren, lordloki, moguri Reviewed By: lordloki, moguri Differential Revision: https://developer.blender.org/D648 --- source/gameengine/GamePlayer/common/GPC_Canvas.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/gameengine/GamePlayer/common/GPC_Canvas.h') diff --git a/source/gameengine/GamePlayer/common/GPC_Canvas.h b/source/gameengine/GamePlayer/common/GPC_Canvas.h index acbea477e38..34cc9759a08 100644 --- a/source/gameengine/GamePlayer/common/GPC_Canvas.h +++ b/source/gameengine/GamePlayer/common/GPC_Canvas.h @@ -71,6 +71,8 @@ public: virtual void ResizeWindow(int width, int height) {} + virtual void GetDisplayDimensions(int &width, int &height) {} + /** * \section Methods inherited from abstract base class RAS_ICanvas. */ -- cgit v1.2.3