AndroidGraphics

Author

Colton Daily

Constructors

Link copied to clipboard
fun AndroidGraphics(engineStats: EngineStats)

Functions

Link copied to clipboard
open override fun onDrawFrame(gl: GL10)
Link copied to clipboard
open override fun onSurfaceChanged(gl: GL10, width: Int, height: Int)
Link copied to clipboard
open override fun onSurfaceCreated(gl: GL10, config: EGLConfig)
Link copied to clipboard
open override fun setCursor(cursor: Cursor)

Overrides the current cursor with the specified cursor.

open override fun setCursor(cursor: SystemCursor)

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

Link copied to clipboard
open override 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
open override val backBufferHeight: Int
Link copied to clipboard
open override val backBufferWidth: Int
Link copied to clipboard
open override val gl: AndroidGL

The OpenGL instance.

Link copied to clipboard
Link copied to clipboard
open override 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
open override val width: Int