Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.GraphicSystem Class Reference

Graphic system. More...

Inheritance diagram for Dragengine.GraphicSystem:

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.

Detailed Description

Graphic system.

This is a native class. This is a pure static class. The class can not be instantiated

Member Function Documentation

◆ getFPSRate()

int Dragengine.GraphicSystem.getFPSRate ( )
static

Frame-per-second rate averaged over the last couple of frames.

Version
1.6

Returns 0 if module is not using a separate thread.

References getParameterInfo().

Referenced by setVRHudOverlayCanvas().

◆ getParameterCount()

int Dragengine.GraphicSystem.getParameterCount ( )
static

Number of parameters available.

References getWindowScaleFactorFloat().

Referenced by sendCommand().

◆ getParameterInfo() [1/2]

ModuleParameter Dragengine.GraphicSystem.getParameterInfo ( int index)
static

Parameter information.

Exceptions
EOutOfBoundaryindex less than 0 or greater than or equal to getParameterCount().

Referenced by getFPSRate().

◆ getParameterInfo() [2/2]

ModuleParameter Dragengine.GraphicSystem.getParameterInfo ( String name)
static

Named parameter information or null if not found.

References getWindowHdrOutput().

◆ getParameterValue()

String Dragengine.GraphicSystem.getParameterValue ( String name)
static

Parameter value.

Exceptions
EInvalidParamParameter with name not found.

References getPrimaryCanvas().

Referenced by setVRDebugPanelPosition().

◆ getPrimaryCanvas()

CanvasView Dragengine.GraphicSystem.getPrimaryCanvas ( )
static

Primary canvas view.

References getWindowScaleFactor().

Referenced by getParameterValue().

◆ getVRHudOverlayCanvas()

CanvasView Dragengine.GraphicSystem.getVRHudOverlayCanvas ( )
static

Get VR HUD overlay canvas view or null if not set.

Version
1.34

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().

◆ getWindowHdrOutput()

bool Dragengine.GraphicSystem.getWindowHdrOutput ( )
static

Render window is using HDR output.

Version
1.32

Referenced by getParameterInfo().

◆ getWindowHeight()

int Dragengine.GraphicSystem.getWindowHeight ( )
static

Height in pixel of the render window.

Referenced by getWindowSize().

◆ getWindowPosition()

Point Dragengine.GraphicSystem.getWindowPosition ( )
static

Position in pixel of render window.

Version
1.24

Referenced by getWindowWidth().

◆ getWindowRealSize()

Point Dragengine.GraphicSystem.getWindowRealSize ( )
static

Real size in pixels of render window.

Version
1.32

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().

◆ getWindowScaleFactor()

int Dragengine.GraphicSystem.getWindowScaleFactor ( )
static

Global scale factor of render window.

Version
1.24

Scaling factor is returned as integer scaling factor where 100 indicates 100%.

References setWindowGeometry().

Referenced by getPrimaryCanvas().

◆ getWindowScaleFactorFloat()

float Dragengine.GraphicSystem.getWindowScaleFactorFloat ( )
static

Global scale factor of render window.

Version
1.24

Scaling factor is returned as floating point scaling factor.

References setWindowTitle().

Referenced by getParameterCount().

◆ getWindowSize()

Point Dragengine.GraphicSystem.getWindowSize ( )
static

Size in pixels of render window.

References getWindowHeight(), and getWindowWidth().

Referenced by getWindowRealSize().

◆ getWindowWidth()

int Dragengine.GraphicSystem.getWindowWidth ( )
static

Width in pixel of render window.

References getWindowPosition().

Referenced by getWindowSize().

◆ getWindowX()

int Dragengine.GraphicSystem.getWindowX ( )
static

X position in pixel of render window.

Version
1.24

References getWindowX().

Referenced by getWindowX().

◆ getWindowY()

int Dragengine.GraphicSystem.getWindowY ( )
static

Y position in pixel of render window.

Version
1.24

References getWindowY().

Referenced by getWindowY().

◆ sendCommand()

String Dragengine.GraphicSystem.sendCommand ( String command)
static

Send command.

References getParameterCount().

Referenced by getVRHudOverlayCanvas().

◆ setParameterValue()

void Dragengine.GraphicSystem.setParameterValue ( String name,
String value )
static

Set named parameter value.

Exceptions
EInvalidParamParameter with name not found.

Referenced by setVRDebugPanelPosition().

◆ setVRDebugPanelPosition()

void Dragengine.GraphicSystem.setVRDebugPanelPosition ( DVector position,
Quaternion orientation )
static

Set position and orientation of VR debug panel if graphic module shows one.

Version
1.17

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:

  • matrix right vector along panel right direction
  • matrix up vector along panel down direction
  • matrix forward vector pointing towards the user

References getParameterValue(), and setParameterValue().

Referenced by setVRHudOverlayCanvas().

◆ setVRHudOverlayCanvas()

void Dragengine.GraphicSystem.setVRHudOverlayCanvas ( CanvasView overlay)
static

Set VR HUD overlay canvas view or null to unset.

Version
1.34

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().

◆ setWindowGeometry() [1/2]

void Dragengine.GraphicSystem.setWindowGeometry ( int width,
int height,
bool fullScreen )
static

Set render window geometry.

Referenced by getWindowScaleFactor(), and setWindowTitle().

◆ setWindowGeometry() [2/2]

void Dragengine.GraphicSystem.setWindowGeometry ( int x,
int y,
int width,
int height,
bool fullScreen )
static

Set render window geometry.

Version
1.24.

◆ setWindowTitle()

void Dragengine.GraphicSystem.setWindowTitle ( String title)
static

Set render window title.

References getWindowRealSize(), and setWindowGeometry().

Referenced by getWindowScaleFactorFloat().


The documentation for this class was generated from the following file: