SDLRuntime
clay.base.BaseRuntime → clay.sdl.SDLRuntime (Class)
Static Members
timestamp(): Float
Returns |
---|
Float |
defaultConfig(): clay.RuntimeConfig
Returns |
---|
clay.RuntimeConfig |
Instance Members
gl: SDLGLContext
window: SDLWindowPointer
currentSdlEvent: SDLEvent
skipMouseEvents: Bool
skipKeyboardEvents: Bool
minFrameTime: Float
init(): Void
ready(): Void
run(): Bool
Returns |
---|
Bool |
Name | Type | Default |
---|---|---|
immediate |
Bool | false |
windowDevicePixelRatio(): Float
Returns |
---|
Float |
windowWidth(): Int
Returns |
---|
Int |
windowHeight(): Int
Returns |
---|
Int |
Name | Type |
---|---|
title |
String |
Name | Type |
---|---|
borderless |
Bool |
startGamepadRumble(gamepadId: Int, lowFrequency: Float, highFrequency: Float, duration: Float): Void
Name | Type |
---|---|
gamepadId |
Int |
lowFrequency |
Float |
highFrequency |
Float |
duration |
Float |
Name | Type |
---|---|
gamepadId |
Int |
Name | Type |
---|---|
index |
Int |
Returns |
---|
String |
Name | Type |
---|---|
fullscreen |
Bool |
Returns |
---|
Bool |
windowSwap(): Void
Name | Type |
---|---|
app |
clay.Clay |
Private Members
timestampStart: Float
windowW: Int
windowH: Int
windowDpr: Float
windowFocused: Bool
gamepads: haxe.ds.IntMap<SDLGamepadPointer>
gamepadInstanceIds: haxe.ds.IntMap<Int>
joysticks: haxe.ds.IntMap<SDLJoystickPointer>
isSdlFullscreen: Bool
fingerIdList: Map
nextFingerId: Int
lastFrameTime: Float
initSDL(): Void
initCwd(): Void
createWindow(): Void
applyGLAttributes(render: clay.RenderConfig): Void
Name | Type |
---|---|
render |
clay.RenderConfig |
windowFlags(config: clay.WindowConfig): SDLWindowFlags
Name | Type |
---|---|
config |
clay.WindowConfig |
Returns |
---|
SDLWindowFlags |
createRenderContext(window: SDLWindowPointer, render: clay.RenderConfig): Bool
Name | Type |
---|---|
window |
SDLWindowPointer |
render |
clay.RenderConfig |
Returns |
---|
Bool |
postRenderContext(window: SDLWindowPointer): Void
Name | Type |
---|---|
window |
SDLWindowPointer |
Name | Type |
---|---|
enabled |
Bool |
Returns |
---|
Bool |
updateWindowConfig(window: SDLWindowPointer, config: clay.WindowConfig): clay.WindowConfig
Name | Type |
---|---|
window |
SDLWindowPointer |
config |
clay.WindowConfig |
Returns |
---|
clay.WindowConfig |
updateRenderConfig(window: SDLWindowPointer, render: clay.RenderConfig): clay.RenderConfig
Name | Type |
---|---|
window |
SDLWindowPointer |
render |
clay.RenderConfig |
Returns |
---|
clay.RenderConfig |
Name | Type |
---|---|
n |
Float |
Returns |
---|
Float |
Name | Type |
---|---|
_ |
Int |
Name | Type |
---|---|
e |
SDLEvent |
Name | Type |
---|---|
value |
cpp.Int64 |
Returns |
---|
Int |
Name | Type |
---|---|
value |
cpp.Int64 |
Name | Type |
---|---|
value |
Float |
Returns |
---|
Int |
toKeyMod(modValue: Int): clay.ModState
Helper to return a ModState
(shift, ctrl etc) from a given InputEvent
Name | Type |
---|---|
modValue |
Int |
Returns |
---|
clay.ModState |
Name | Type |
---|---|
e |
SDLEvent |
Name | Type |
---|---|
e |
SDLEvent |
Metadata
Name | Parameters |
---|---|
:headerCode |
"#include "linc_sdl.h"" |
:access |
clay.Clay |
:access |
clay.Input |
:access |
clay.Screen |