Documentation
¶
Rendered for js/wasm
Index ¶
- Constants
- func BindCallback(info engine.CallbackInfo)
- func CachedActionAxis(neg, pos string, fallback func() float64) float64
- func CachedActionBool(kind, action string, fallback func() bool) bool
- func GdspxOnCollisionEnter(selfID int64, otherID int64)
- func GdspxOnCollisionExit(selfID int64, otherID int64)
- func GdspxOnCollisionStay(selfID int64, otherID int64)
- func GdspxOnEngineDestroy()
- func GdspxOnEngineFixedUpdate(delta float64)
- func GdspxOnEnginePause(isOn uint32)
- func GdspxOnEngineReset()
- func GdspxOnEngineUpdate(delta float64)
- func GdspxOnKeyPressed(keyID int64)
- func GdspxOnKeyReleased(keyID int64)
- func GdspxOnMousePressed(keyID int64)
- func GdspxOnMouseReleased(keyID int64)
- func GdspxOnSpriteAnimationChanged(obj int64)
- func GdspxOnSpriteAnimationFinished(obj int64)
- func GdspxOnSpriteAnimationLooped(obj int64)
- func GdspxOnSpriteDestroyed(obj int64)
- func GdspxOnSpriteFixedUpdated(delta float64)
- func GdspxOnSpriteFrameChanged(obj int64)
- func GdspxOnSpriteFramesSetChanged(obj int64)
- func GdspxOnSpriteReady(obj int64)
- func GdspxOnSpriteScreenEntered(obj int64)
- func GdspxOnSpriteScreenExited(obj int64)
- func GdspxOnSpriteUpdated(delta float64)
- func GdspxOnSpriteVfxFinished(obj int64)
- func GdspxOnTriggerEnter(selfID int64, otherID int64)
- func GdspxOnTriggerExit(selfID int64, otherID int64)
- func GdspxOnTriggerStay(selfID int64, otherID int64)
- func GdspxOnUiClicked(obj int64)
- func GdspxOnUiDestroyed(obj int64)
- func GdspxOnUiHovered(obj int64)
- func GdspxOnUiPressed(obj int64)
- func GdspxOnUiReady(obj int64)
- func GdspxOnUiReleased(obj int64)
- func GdspxOnUiToggle(obj int64, isOn uint32)
- func GdspxOnUiUpdated(obj int64)
- func JsFromGdArray(arrayPtr Array) js.Value
- func JsFromGdBool(val bool) js.Value
- func JsFromGdColor(color Color) js.Value
- func JsFromGdFloat(val float64) js.Value
- func JsFromGdInt(val int64) js.Value
- func JsFromGdObj(val Object) js.Value
- func JsFromGdRect2(rect Rect2) js.Value
- func JsFromGdString(object string) js.Value
- func JsFromGdVec2(vec Vec2) js.Value
- func JsFromGdVec3(vec Vec3) js.Value
- func JsFromGdVec4(vec Vec4) js.Value
- func JsSplitGdInt(val int64) (uint32, uint32)
- func JsSplitGdObj(val Object) (uint32, uint32)
- func JsToGdArray(val js.Value) Array
- func JsToGdBool(val js.Value) bool
- func JsToGdColor(color js.Value) Color
- func JsToGdFloat(val js.Value) float64
- func JsToGdFloat32(val js.Value) float32
- func JsToGdInt(val js.Value) int64
- func JsToGdInt64(val js.Value) int64
- func JsToGdObj(val js.Value) int64
- func JsToGdObject(val js.Value) Object
- func JsToGdRect2(rect js.Value) Rect2
- func JsToGdString(object js.Value) string
- func JsToGdVec2(vec js.Value) Vec2
- func JsToGdVec3(vec js.Value) Vec3
- func JsToGdVec4(vec js.Value) Vec4
- func Link() bool
- func Linked()
- func PrintJs(rect js.Value)
- func RecordWebKeyState(key int64, pressed bool)
- func SyncWebInputSnapshot()
- func Unlink()
- func WebInputKeyState(key int64, fallback func() bool) bool
- func WebInputMousePos(fallback func() Vec2) Vec2
- func WebInputMouseState(id int64, fallback func() bool) bool
- type GDExtensionInterface
- type GdArrayInfo
Constants ¶
View Source
const ( GdArrayTypeUnknown = 0 GdArrayTypeInt64 = 1 GdArrayTypeFloat = 2 GdArrayTypeBool = 3 GdArrayTypeString = 4 GdArrayTypeByte = 5 GdArrayTypeGdObj = 6 )
Variables ¶
This section is empty.
Functions ¶
func BindCallback ¶
func BindCallback(info engine.CallbackInfo)
func CachedActionAxis ¶
func CachedActionBool ¶
func GdspxOnCollisionEnter ¶
func GdspxOnCollisionExit ¶
func GdspxOnCollisionStay ¶
func GdspxOnEngineDestroy ¶
func GdspxOnEngineDestroy()
func GdspxOnEngineFixedUpdate ¶
func GdspxOnEngineFixedUpdate(delta float64)
func GdspxOnEnginePause ¶
func GdspxOnEnginePause(isOn uint32)
func GdspxOnEngineReset ¶
func GdspxOnEngineReset()
func GdspxOnEngineUpdate ¶
func GdspxOnEngineUpdate(delta float64)
func GdspxOnKeyPressed ¶
func GdspxOnKeyPressed(keyID int64)
func GdspxOnKeyReleased ¶
func GdspxOnKeyReleased(keyID int64)
func GdspxOnMousePressed ¶
func GdspxOnMousePressed(keyID int64)
func GdspxOnMouseReleased ¶
func GdspxOnMouseReleased(keyID int64)
func GdspxOnSpriteAnimationChanged ¶
func GdspxOnSpriteAnimationChanged(obj int64)
func GdspxOnSpriteAnimationFinished ¶
func GdspxOnSpriteAnimationFinished(obj int64)
func GdspxOnSpriteAnimationLooped ¶
func GdspxOnSpriteAnimationLooped(obj int64)
func GdspxOnSpriteDestroyed ¶
func GdspxOnSpriteDestroyed(obj int64)
func GdspxOnSpriteFixedUpdated ¶
func GdspxOnSpriteFixedUpdated(delta float64)
func GdspxOnSpriteFrameChanged ¶
func GdspxOnSpriteFrameChanged(obj int64)
func GdspxOnSpriteFramesSetChanged ¶
func GdspxOnSpriteFramesSetChanged(obj int64)
func GdspxOnSpriteReady ¶
func GdspxOnSpriteReady(obj int64)
func GdspxOnSpriteScreenEntered ¶
func GdspxOnSpriteScreenEntered(obj int64)
func GdspxOnSpriteScreenExited ¶
func GdspxOnSpriteScreenExited(obj int64)
func GdspxOnSpriteUpdated ¶
func GdspxOnSpriteUpdated(delta float64)
func GdspxOnSpriteVfxFinished ¶
func GdspxOnSpriteVfxFinished(obj int64)
func GdspxOnTriggerEnter ¶
func GdspxOnTriggerExit ¶
func GdspxOnTriggerStay ¶
func GdspxOnUiClicked ¶
func GdspxOnUiClicked(obj int64)
func GdspxOnUiDestroyed ¶
func GdspxOnUiDestroyed(obj int64)
func GdspxOnUiHovered ¶
func GdspxOnUiHovered(obj int64)
func GdspxOnUiPressed ¶
func GdspxOnUiPressed(obj int64)
func GdspxOnUiReady ¶
func GdspxOnUiReady(obj int64)
func GdspxOnUiReleased ¶
func GdspxOnUiReleased(obj int64)
func GdspxOnUiToggle ¶
func GdspxOnUiUpdated ¶
func GdspxOnUiUpdated(obj int64)
func JsFromGdArray ¶
func JsFromGdBool ¶
func JsFromGdColor ¶
func JsFromGdFloat ¶
func JsFromGdInt ¶
func JsFromGdObj ¶
func JsFromGdRect2 ¶
func JsFromGdString ¶
func JsFromGdVec2 ¶
func JsFromGdVec3 ¶
func JsFromGdVec4 ¶
func JsSplitGdInt ¶
JsSplitGdInt encodes a web bridge GdInt/GdObj as (low, high) uint32 parts. JS-facing wrappers keep this order, while the wasm-side constructors rebuild the 64-bit value according to the platform ABI.
func JsSplitGdObj ¶
func JsToGdArray ¶
func JsToGdBool ¶
func JsToGdColor ¶
func JsToGdFloat ¶
func JsToGdFloat32 ¶
func JsToGdInt64 ¶
func JsToGdObject ¶
func JsToGdRect2 ¶
func JsToGdString ¶
func JsToGdVec2 ¶
func JsToGdVec3 ¶
func JsToGdVec4 ¶
func RecordWebKeyState ¶
func SyncWebInputSnapshot ¶
func SyncWebInputSnapshot()
func WebInputKeyState ¶
func WebInputMousePos ¶
func WebInputMousePos(fallback func() Vec2) Vec2
func WebInputMouseState ¶
Types ¶
type GDExtensionInterface ¶
type GDExtensionInterface struct {
// All of the GDExtension interface functions.
SpxAudioStopAll js.Value
SpxAudioCreateAudio js.Value
SpxAudioDestroyAudio js.Value
SpxAudioSetPitch js.Value
SpxAudioGetPitch js.Value
SpxAudioSetPan js.Value
SpxAudioGetPan js.Value
SpxAudioSetVolume js.Value
SpxAudioGetVolume js.Value
SpxAudioPlayWithAttenuation js.Value
SpxAudioPlay js.Value
SpxAudioPause js.Value
SpxAudioResume js.Value
SpxAudioStop js.Value
SpxAudioRestart js.Value
SpxAudioSetLoop js.Value
SpxAudioGetLoop js.Value
SpxAudioGetTimer js.Value
SpxAudioSetTimer js.Value
SpxAudioIsPlaying js.Value
SpxCameraGetCameraPosition js.Value
SpxCameraSetCameraPosition js.Value
SpxCameraGetCameraZoom js.Value
SpxCameraSetCameraZoom js.Value
SpxCameraGetViewportRect js.Value
SpxCameraGetGlobalCameraRect js.Value
SpxCameraGetStageLimitsRect js.Value
SpxCameraSetCameraLimit js.Value
SpxCameraSetCameraSmoothing js.Value
SpxDebugDebugDrawCircle js.Value
SpxDebugDebugDrawRect js.Value
SpxDebugDebugDrawLine js.Value
SpxExtRequestExit js.Value
SpxExtRequestReset js.Value
SpxExtRequestRestart js.Value
SpxExtOnRuntimePanic js.Value
SpxExtPause js.Value
SpxExtResume js.Value
SpxExtIsPaused js.Value
SpxExtNextFrame js.Value
SpxExtSetLayerSorterMode js.Value
SpxInputGetGlobalMousePos js.Value
SpxInputGetKey js.Value
SpxInputGetMouseState js.Value
SpxInputGetKeyState js.Value
SpxInputGetAxis js.Value
SpxInputIsActionPressed js.Value
SpxInputIsActionJustPressed js.Value
SpxInputIsActionJustReleased js.Value
SpxInputRegisterAction js.Value
SpxInputGetAxisId js.Value
SpxInputIsActionPressedId js.Value
SpxInputIsActionJustPressedId js.Value
SpxInputIsActionJustReleasedId js.Value
SpxInputWriteSnapshot js.Value
SpxPenDestroyAllPens js.Value
SpxPenSetCanvasSize js.Value
SpxPenCreatePen js.Value
SpxPenDestroyPen js.Value
SpxPenBatchUpdateCommands js.Value
SpxPenPenStamp js.Value
SpxPenMovePenTo js.Value
SpxPenPenDown js.Value
SpxPenPenUp js.Value
SpxPenSetPenColorTo js.Value
SpxPenChangePenBy js.Value
SpxPenSetPenTo js.Value
SpxPenChangePenSizeBy js.Value
SpxPenSetPenSizeTo js.Value
SpxPenSetPenStampTexture js.Value
SpxPenPenStampWithTransform js.Value
SpxPhysicsRaycast js.Value
SpxPhysicsCheckCollision js.Value
SpxPhysicsCheckTouchedCameraBoundaries js.Value
SpxPhysicsCheckTouchedCameraBoundary js.Value
SpxPhysicsCheckNearestTouchedCameraBoundary js.Value
SpxPhysicsCheckTouchedStageBoundaries js.Value
SpxPhysicsCheckTouchedStageBoundary js.Value
SpxPhysicsCheckNearestTouchedStageBoundary js.Value
SpxPhysicsSetCollisionSystemType js.Value
SpxPhysicsSetGlobalGravity js.Value
SpxPhysicsGetGlobalGravity js.Value
SpxPhysicsSetGlobalFriction js.Value
SpxPhysicsGetGlobalFriction js.Value
SpxPhysicsSetGlobalAirDrag js.Value
SpxPhysicsGetGlobalAirDrag js.Value
SpxPhysicsCheckCollisionRect js.Value
SpxPhysicsCheckCollisionCircle js.Value
SpxPhysicsRaycastWithDetails js.Value
SpxPlatformSetStretchMode js.Value
SpxPlatformSetStretchAspect js.Value
SpxPlatformSetStretchContentScale js.Value
SpxPlatformSetWindowPosition js.Value
SpxPlatformGetWindowPosition js.Value
SpxPlatformSetWindowSize js.Value
SpxPlatformGetWindowSize js.Value
SpxPlatformSetWindowTitle js.Value
SpxPlatformGetWindowTitle js.Value
SpxPlatformSetWindowFullscreen js.Value
SpxPlatformIsWindowFullscreen js.Value
SpxPlatformSetDebugMode js.Value
SpxPlatformIsDebugMode js.Value
SpxPlatformIsMainThread js.Value
SpxPlatformGetTimeScale js.Value
SpxPlatformSetTimeScale js.Value
SpxPlatformGetMaxFps js.Value
SpxPlatformSetMaxFps js.Value
SpxPlatformGetPersistantDataDir js.Value
SpxPlatformSetPersistantDataDir js.Value
SpxPlatformIsInPersistantDataDir js.Value
SpxResCreateAnimation js.Value
SpxResSetLoadMode js.Value
SpxResGetLoadMode js.Value
SpxResGetBoundFromAlpha js.Value
SpxResGetImageSize js.Value
SpxResReadAllText js.Value
SpxResHasFile js.Value
SpxResListDirectories js.Value
SpxResReloadTexture js.Value
SpxResFreeStr js.Value
SpxResApplyProjectFonts js.Value
SpxResSetDefaultFont js.Value
SpxResRegisterFontFace js.Value
SpxResSetFontPreferences js.Value
SpxSceneChangeSceneToFile js.Value
SpxSceneDestroyAllSprites js.Value
SpxSceneReloadCurrentScene js.Value
SpxSceneUnloadCurrentScene js.Value
SpxSceneClearPureSprites js.Value
SpxSceneCreatePureSprite js.Value
SpxSceneDestroyPureSprite js.Value
SpxSceneCreateRenderSprite js.Value
SpxSceneCreateStaticSprite js.Value
SpxSpriteSetDontDestroyOnLoad js.Value
SpxSpriteSetProcess js.Value
SpxSpriteSetPhysicProcess js.Value
SpxSpriteSetTypeName js.Value
SpxSpriteSetPivot js.Value
SpxSpriteGetPivot js.Value
SpxSpriteSetChildPosition js.Value
SpxSpriteGetChildPosition js.Value
SpxSpriteSetChildRotation js.Value
SpxSpriteGetChildRotation js.Value
SpxSpriteSetChildScale js.Value
SpxSpriteGetChildScale js.Value
SpxSpriteCheckCollision js.Value
SpxSpriteCheckCollisionWithPoint js.Value
SpxSpriteSetDebugCollisionVisible js.Value
SpxSpriteIsDebugCollisionVisible js.Value
SpxSpriteCreateBackdrop js.Value
SpxSpriteCreateSprite js.Value
SpxSpriteCreateBareSprite js.Value
SpxSpriteCloneSprite js.Value
SpxSpriteDestroySprite js.Value
SpxSpriteIsSpriteAlive js.Value
SpxSpriteSetPosition js.Value
SpxSpriteSetTransform js.Value
SpxSpriteGetPosition js.Value
SpxSpriteSetRotation js.Value
SpxSpriteGetRotation js.Value
SpxSpriteSetScale js.Value
SpxSpriteGetScale js.Value
SpxSpriteSetRenderScale js.Value
SpxSpriteGetRenderScale js.Value
SpxSpriteSetColor js.Value
SpxSpriteGetColor js.Value
SpxSpriteSetMaterialShader js.Value
SpxSpriteGetMaterialShader js.Value
SpxSpriteSetMaterialParams js.Value
SpxSpriteGetMaterialParams js.Value
SpxSpriteSetMaterialParamsVec js.Value
SpxSpriteSetMaterialParamsVec4 js.Value
SpxSpriteGetMaterialParamsVec4 js.Value
SpxSpriteSetMaterialParamsColor js.Value
SpxSpriteGetMaterialParamsColor js.Value
SpxSpriteSetTextureAtlas js.Value
SpxSpriteSetTexture js.Value
SpxSpriteSetTextureAtlasDirect js.Value
SpxSpriteSetTextureDirect js.Value
SpxSpriteGetTexture js.Value
SpxSpriteSetVisible js.Value
SpxSpriteGetVisible js.Value
SpxSpriteGetZIndex js.Value
SpxSpriteSetZIndex js.Value
SpxSpritePlayAnim js.Value
SpxSpritePlayBackwardsAnim js.Value
SpxSpritePauseAnim js.Value
SpxSpriteStopAnim js.Value
SpxSpriteIsPlayingAnim js.Value
SpxSpriteSetAnim js.Value
SpxSpriteGetAnim js.Value
SpxSpriteSetAnimFrame js.Value
SpxSpriteGetAnimFrame js.Value
SpxSpriteSetAnimSpeedScale js.Value
SpxSpriteGetAnimSpeedScale js.Value
SpxSpriteGetAnimPlayingSpeed js.Value
SpxSpriteSetAnimCentered js.Value
SpxSpriteIsAnimCentered js.Value
SpxSpriteSetAnimOffset js.Value
SpxSpriteGetAnimOffset js.Value
SpxSpriteSetAnimFlipH js.Value
SpxSpriteIsAnimFlippedH js.Value
SpxSpriteSetAnimFlipV js.Value
SpxSpriteIsAnimFlippedV js.Value
SpxSpriteGetCurrentAnimName js.Value
SpxSpriteSetVelocity js.Value
SpxSpriteGetVelocity js.Value
SpxSpriteIsOnFloor js.Value
SpxSpriteIsOnFloorOnly js.Value
SpxSpriteIsOnWall js.Value
SpxSpriteIsOnWallOnly js.Value
SpxSpriteIsOnCeiling js.Value
SpxSpriteIsOnCeilingOnly js.Value
SpxSpriteGetLastMotion js.Value
SpxSpriteGetPositionDelta js.Value
SpxSpriteGetFloorNormal js.Value
SpxSpriteGetWallNormal js.Value
SpxSpriteGetRealVelocity js.Value
SpxSpriteMoveAndSlide js.Value
SpxSpriteSetGravity js.Value
SpxSpriteGetGravity js.Value
SpxSpriteSetMass js.Value
SpxSpriteGetMass js.Value
SpxSpriteAddForce js.Value
SpxSpriteAddImpulse js.Value
SpxSpriteSetPhysicsMode js.Value
SpxSpriteGetPhysicsMode js.Value
SpxSpriteSetUseGravity js.Value
SpxSpriteIsUseGravity js.Value
SpxSpriteSetGravityScale js.Value
SpxSpriteGetGravityScale js.Value
SpxSpriteSetDrag js.Value
SpxSpriteGetDrag js.Value
SpxSpriteSetFriction js.Value
SpxSpriteGetFriction js.Value
SpxSpriteSetCollisionLayer js.Value
SpxSpriteGetCollisionLayer js.Value
SpxSpriteSetCollisionMask js.Value
SpxSpriteGetCollisionMask js.Value
SpxSpriteSetTriggerLayer js.Value
SpxSpriteGetTriggerLayer js.Value
SpxSpriteSetTriggerMask js.Value
SpxSpriteGetTriggerMask js.Value
SpxSpriteSetColliderRect js.Value
SpxSpriteSetColliderCircle js.Value
SpxSpriteSetColliderCapsule js.Value
SpxSpriteSetColliderPolygon js.Value
SpxSpriteSetCollisionEnabled js.Value
SpxSpriteIsCollisionEnabled js.Value
SpxSpriteSetTriggerRect js.Value
SpxSpriteSetTriggerCircle js.Value
SpxSpriteSetTriggerCapsule js.Value
SpxSpriteSetTriggerPolygon js.Value
SpxSpriteSetTriggerEnabled js.Value
SpxSpriteIsTriggerEnabled js.Value
SpxSpriteCheckCollisionByColor js.Value
SpxSpriteCheckCollisionByColors js.Value
SpxSpriteCheckCollisionByAlpha js.Value
SpxSpriteCheckCollisionWithSprite js.Value
SpxSpriteSetPixelCollisionSamplingStep js.Value
SpxSpriteGetPixelCollisionSamplingStep js.Value
SpxSpriteBatchUpdateTransforms js.Value
SpxSpriteBatchUpdateVisuals js.Value
SpxSpriteBatchUpdatePhysics js.Value
SpxTilemapOpenDrawTilesWithSize js.Value
SpxTilemapOpenDrawTiles js.Value
SpxTilemapSetLayerIndex js.Value
SpxTilemapSetTile js.Value
SpxTilemapSetTileWithCollisionInfo js.Value
SpxTilemapSetLayerOffset js.Value
SpxTilemapGetLayerOffset js.Value
SpxTilemapPlaceTiles js.Value
SpxTilemapPlaceTilesWithLayer js.Value
SpxTilemapPlaceTile js.Value
SpxTilemapPlaceTileWithLayer js.Value
SpxTilemapEraseTile js.Value
SpxTilemapEraseTileWithLayer js.Value
SpxTilemapGetTile js.Value
SpxTilemapGetTileWithLayer js.Value
SpxTilemapCloseDrawTiles js.Value
SpxTilemapExitTilemapEditorMode js.Value
SpxTilemapparserLoadTilemap js.Value
SpxTilemapparserUnloadTilemap js.Value
SpxTilemapparserDestroyAllTilemaps js.Value
SpxTilemapparserHasTilemap js.Value
SpxTilemapparserGetTilemapLayerCount js.Value
SpxUiBindNode js.Value
SpxUiCreateNode js.Value
SpxUiCreateButton js.Value
SpxUiCreateLabel js.Value
SpxUiCreateImage js.Value
SpxUiCreateToggle js.Value
SpxUiCreateSlider js.Value
SpxUiCreateInput js.Value
SpxUiDestroyNode js.Value
SpxUiGetType js.Value
SpxUiSetText js.Value
SpxUiGetText js.Value
SpxUiSetTexture js.Value
SpxUiGetTexture js.Value
SpxUiSetColor js.Value
SpxUiGetColor js.Value
SpxUiSetFontSize js.Value
SpxUiGetFontSize js.Value
SpxUiSetVisible js.Value
SpxUiGetVisible js.Value
SpxUiSetInteractable js.Value
SpxUiGetInteractable js.Value
SpxUiSetRect js.Value
SpxUiGetRect js.Value
SpxUiGetLayoutDirection js.Value
SpxUiSetLayoutDirection js.Value
SpxUiGetLayoutMode js.Value
SpxUiSetLayoutMode js.Value
SpxUiGetAnchorsPreset js.Value
SpxUiSetAnchorsPreset js.Value
SpxUiGetScale js.Value
SpxUiSetScale js.Value
SpxUiGetPosition js.Value
SpxUiSetPosition js.Value
SpxUiGetSize js.Value
SpxUiSetSize js.Value
SpxUiGetGlobalPosition js.Value
SpxUiSetGlobalPosition js.Value
SpxUiGetRotation js.Value
SpxUiSetRotation js.Value
SpxUiGetFlip js.Value
SpxUiSetFlip js.Value
SpxSpriteBatchRetrievePositions js.Value
}
var (
API GDExtensionInterface
)
type GdArrayInfo ¶
Click to show internal directories.
Click to hide internal directories.