diff options
author | Thomas Szepe <HG1_public@gmx.net> | 2015-04-07 19:32:25 +0300 |
---|---|---|
committer | Thomas Szepe <HG1_public@gmx.net> | 2015-04-07 19:32:25 +0300 |
commit | e36b0cb8f32fc4302499c87e5c2b4c1ecc7a6543 (patch) | |
tree | 53fcd2ebd7775bebc00f8ca5960a2bd18145e17e /doc | |
parent | f9f3c29a3a5b558e09c36076521bdafc91e7e326 (diff) |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/rst/bge.render.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge.render.rst b/doc/python_api/rst/bge.render.rst index 651693b7a8a..1748ae14fc8 100644 --- a/doc/python_api/rst/bge.render.rst +++ b/doc/python_api/rst/bge.render.rst @@ -123,6 +123,12 @@ Functions :rtype: bool +.. function:: getDisplayDimensions() + + Get the actual display dimensions, in pixels, of the physical display (e.g., the monitor). + + :type dimension: list [width,heigh] + .. function:: makeScreenshot(filename) Writes an image file with the current displayed frame. |