Graphics

Description

Name

abstract class Tinman.Graphics

Extended by

DirectX11 / DirectX12 / DirectX9 / OpenGL / OpenGLES

A factory for graphics contexts.

Fields / Optional

repository

Type

path

Constraint

# != null

Default

<?>

Path to the public repository of shared GPU shaders or the unknown path <?> to only use private GPU shader repositories.


multisample

Type

Multisample

Default

{Multisample}

The multisampling settings to use.


vsync

Type

bool

Default

true

Enable V-Sync?


memory

Type

number

Default

0

The estimated total amount of GPU memory (dedicated + shared), in megabytes. If 0, the memory amount will be determined automatically. If this is not possible, the memory amount will be set to 2048.


adapter

Type

number

Default

0

The graphics adapter ordinal.


limit

Type

number

Default

0

The maximum size of a single texture resource in video memory, in megabytes. If 0, the maximum size will be determined automatically. If this is not possible, the maximum size will be set to 2048.