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
This commit is contained in:
Thomas Szepe
2015-04-07 18:32:25 +02:00
parent f9f3c29a3a
commit e36b0cb8f3
8 changed files with 47 additions and 0 deletions

View File

@@ -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.