|
Drag[en]gine Script Module DragonScript 1.35
|
Graphic system. More...
Static Public Member Functions | |
Management | |
| static int | getWindowX () |
| X position in pixel of render window. | |
| static int | getWindowY () |
| Y position in pixel of render window. | |
| static Point | getWindowPosition () |
| Position in pixel of render window. | |
| static int | getWindowWidth () |
| Width in pixel of render window. | |
| static int | getWindowHeight () |
| Height in pixel of the render window. | |
| static Point | getWindowSize () |
| Size in pixels of render window. | |
| static Point | getWindowRealSize () |
| Real size in pixels of render window. | |
| static void | setWindowGeometry (int width, int height, bool fullScreen) |
| Set render window geometry. | |
| static void | setWindowGeometry (int x, int y, int width, int height, bool fullScreen) |
| Set render window geometry. | |
| static void | setWindowTitle (String title) |
| Set render window title. | |
| static int | getWindowScaleFactor () |
| Global scale factor of render window. | |
| static float | getWindowScaleFactorFloat () |
| Global scale factor of render window. | |
| static bool | getWindowHdrOutput () |
| Render window is using HDR output. | |
| static CanvasView | getPrimaryCanvas () |
| Primary canvas view. | |
Parameters | |
| static int | getParameterCount () |
| Number of parameters available. | |
| static ModuleParameter | getParameterInfo (int index) |
| Parameter information. | |
| static ModuleParameter | getParameterInfo (String name) |
| Named parameter information or null if not found. | |
| static String | getParameterValue (String name) |
| Parameter value. | |
| static void | setParameterValue (String name, String value) |
| Set named parameter value. | |
| static String | sendCommand (String command) |
| Send command. | |
| static int | getFPSRate () |
| Frame-per-second rate averaged over the last couple of frames. | |
| static void | setVRDebugPanelPosition (DVector position, Quaternion orientation) |
| Set position and orientation of VR debug panel if graphic module shows one. | |
| static CanvasView | getVRHudOverlayCanvas () |
| Get VR HUD overlay canvas view or null if not set. | |
| static void | setVRHudOverlayCanvas (CanvasView overlay) |
| Set VR HUD overlay canvas view or null to unset. | |
Graphic system.
This is a native class. This is a pure static class. The class can not be instantiated
|
static |
Frame-per-second rate averaged over the last couple of frames.
Returns 0 if module is not using a separate thread.
References getParameterInfo().
Referenced by setVRHudOverlayCanvas().
|
static |
Number of parameters available.
References getWindowScaleFactorFloat().
Referenced by sendCommand().
|
static |
Parameter information.
| EOutOfBoundary | index less than 0 or greater than or equal to getParameterCount(). |
Referenced by getFPSRate().
|
static |
Named parameter information or null if not found.
References getWindowHdrOutput().
|
static |
Parameter value.
| EInvalidParam | Parameter with name not found. |
References getPrimaryCanvas().
Referenced by setVRDebugPanelPosition().
|
static |
|
static |
Get VR HUD overlay canvas view or null if not set.
Returns the CanvasView used as HUD overlay in VR rendering. The HUD overlay is located in front of the user. The VR module sizes the overlay to fit into the desired field of view of the user.
References sendCommand().
Referenced by setVRHudOverlayCanvas().
|
static |
|
static |
Height in pixel of the render window.
Referenced by getWindowSize().
|
static |
|
static |
Real size in pixels of render window.
Real size differs from getWindowSize() if global scaling is used. Required for screenshot creation to get the full image size instead of the scaled down size.
References getWindowSize().
Referenced by setWindowTitle().
|
static |
Global scale factor of render window.
Scaling factor is returned as integer scaling factor where 100 indicates 100%.
References setWindowGeometry().
Referenced by getPrimaryCanvas().
|
static |
Global scale factor of render window.
Scaling factor is returned as floating point scaling factor.
References setWindowTitle().
Referenced by getParameterCount().
|
static |
Size in pixels of render window.
References getWindowHeight(), and getWindowWidth().
Referenced by getWindowRealSize().
|
static |
|
static |
X position in pixel of render window.
References getWindowX().
Referenced by getWindowX().
|
static |
Y position in pixel of render window.
References getWindowY().
Referenced by getWindowY().
|
static |
|
static |
Set named parameter value.
| EInvalidParam | Parameter with name not found. |
Referenced by setVRDebugPanelPosition().
|
static |
Set position and orientation of VR debug panel if graphic module shows one.
The debug panel is usually shown if the user looks at the back of his right hand like looking at a wrist watch. The position is the center of the debug panel with the size determined by the graphic module. The matrix defined by the orientation lines up with the panel like this:
References getParameterValue(), and setParameterValue().
Referenced by setVRHudOverlayCanvas().
|
static |
Set VR HUD overlay canvas view or null to unset.
Sets the CanvasView to use as HUD overlay in VR rendering. The HUD overlay is located in front of the user. The VR module sizes the overlay to fit into the desired field of view of the user.
References getFPSRate(), getVRHudOverlayCanvas(), setVRDebugPanelPosition(), and setVRHudOverlayCanvas().
Referenced by setVRHudOverlayCanvas().
|
static |
Set render window geometry.
Referenced by getWindowScaleFactor(), and setWindowTitle().
|
static |
Set render window geometry.
|
static |
Set render window title.
References getWindowRealSize(), and setWindowGeometry().
Referenced by getWindowScaleFactorFloat().