SDLRuntime
clay.base.BaseRuntime → clay.sdl.SDLRuntime (Class)
Static Members
timestamp(): Float| Returns |
|---|
| Float |
defaultConfig(): clay.RuntimeConfig| Returns |
|---|
| clay.RuntimeConfig |
Instance Members
gl: SDLGLContextwindow: SDLWindowPointercurrentSdlEvent: SDLEventskipMouseEvents: BoolskipKeyboardEvents: BoolminFrameTime: Floatinit(): Voidready(): Voidrun(): 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: FloatwindowW: IntwindowH: IntwindowDpr: FloatwindowFocused: Boolgamepads: haxe.ds.IntMap<SDLGamepadPointer>gamepadInstanceIds: haxe.ds.IntMap<Int>joysticks: haxe.ds.IntMap<SDLJoystickPointer>isSdlFullscreen: BoolfingerIdList: MapnextFingerId: IntlastFrameTime: FloatinitSDL(): VoidinitCwd(): VoidcreateWindow(): VoidapplyGLAttributes(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.ModStateHelper 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 |