Graphics

interface Graphics

Contains graphic related properties and methods.

Author

Colton Daily

Functions

Link copied to clipboard
abstract fun setCursor(cursor: Cursor)

Overrides the current cursor with the specified cursor.

abstract fun setCursor(cursor: SystemCursor)

Overrides the current cursor with a default system cursor. See SystemCursor

Link copied to clipboard
abstract fun supportsExtension(extension: String): Boolean
Link copied to clipboard
open fun toBackBufferX(logicalX: Int): Int

Converts logical screen x-coordinate to back buffer coordinates.

Link copied to clipboard
open fun toBackBufferY(logicalY: Int): Int

Converts logical screen y-coordinate to back buffer coordinates.

Link copied to clipboard
open fun toLogicalX(backBufferX: Int): Int

Converts back buffer x-coordinate to logical screen coordinates.

Link copied to clipboard
open fun toLogicalY(backBufferY: Int): Int

Converts back buffer y-coordinate to logical screen coordinates.

Properties

Link copied to clipboard
abstract val backBufferHeight: Int
Link copied to clipboard
abstract val backBufferWidth: Int
Link copied to clipboard
abstract val gl: GL

The OpenGL instance.

Link copied to clipboard
Link copied to clipboard
abstract val height: Int
Link copied to clipboard
open val isGL30: Boolean
Link copied to clipboard

Converts logical screen x-coordinate to back buffer coordinates.

Link copied to clipboard

Converts logical screen y-coordinate to back buffer coordinates.

Link copied to clipboard
open val Int.toLogicalX: Int

Converts back buffer x-coordinate to logical screen coordinates.

Link copied to clipboard
open val Int.toLogicalY: Int

Converts back buffer y-coordinate to logical screen coordinates.

Link copied to clipboard
abstract val width: Int

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard