RaylibModuleWasm class abstract
Base class for WASM-backed Raylib modules.
Arity and (sort of) type-checked cwrap bindings.
- Inheritance
-
- Object
- RaylibModule<
Raylib> - RaylibModuleWasm
- Implementers
Constructors
Properties
-
$
→ RaylibTemp<
RaylibBase> -
See RaylibTemp.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- rl → Raylib
-
finalinherited
- rn → String
-
Emscripten
cwrapreturn type for anything other thanstructs andvoid.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- rv → Null
-
Emscripten
cwrapreturn type for functions returningvoid.final
Methods
-
debug(
bool v) → void -
Enables or disables debug logging for this module.
inherited
-
debugError(
String message) → void -
Logs
messageat error level if debug is enabled andmessagepasses all filters.inherited -
debugFilter(
bool filter(String)) → void -
Adds a predicate that gates debug output. Only messages satisfying at least one filter are logged.
inherited
-
debugInfo(
String message) → void -
Logs
messageat info level if debug is enabled andmessagepasses all filters.inherited -
debugTime(
bool v) → void -
Enables or disables per-call timing output alongside debug logs.
inherited
-
debugWarn(
String message) → void -
Logs
messageat warn level if debug is enabled andmessagepasses all filters.inherited -
disableSync<
T> (T f()) → T -
Executes
fwith RaylibTemp syncing temporarily disabled, restoring the previous sync state afterward.inherited -
dispose(
) → void -
Calls all registered onDispose callbacks and clears them.
inherited
-
disposeStructWithOpFreed<
D extends RaylibStruct< (D> >D struct, void fn(StructPointer< D> ptr)) → void -
Disposes
struct, invokesfnwith its underlying pointer, and then frees the temporary allocation backing the pointer, if any.inherited -
disposeStructWithOpUnslotted<
D extends RaylibStruct< (D> >D struct, void fn(StructPointer< D> ptr)) → void -
Disposes
struct, invokesfnwith its underlying pointer, and then unslots the temporary allocation backing the pointer, if any.inherited -
dwrap0<
R> (String name) → WF0< R> -
Binds a
cwraped C function taking0arguments and returning a plain (non-struct) value. -
dwrap1<
R> (String name) → WF1< R> -
Binds a
cwraped C function taking1argument and returning a plain (non-struct) value. -
dwrap2<
R> (String name) → WF2< R> -
Binds a
cwraped C function taking2arguments and returning a plain (non-struct) value. -
dwrap3<
R> (String name) → WF3< R> -
Binds a
cwraped C function taking3arguments and returning a plain (non-struct) value. -
dwrap4<
R> (String name) → WF4< R> -
Binds a
cwraped C function taking4arguments and returning a plain (non-struct) value. -
dwrap5<
R> (String name) → WF5< R> -
Binds a
cwraped C function taking5arguments and returning a plain (non-struct) value. -
dwrap6<
R> (String name) → WF6< R> -
Binds a
cwraped C function taking6arguments and returning a plain (non-struct) value. -
dwrap7<
R> (String name) → WF7< R> -
Binds a
cwraped C function taking7arguments and returning a plain (non-struct) value. -
dwrap8<
R> (String name) → WF8< R> -
Binds a
cwraped C function taking8arguments and returning a plain (non-struct) value. -
dwrap9<
R> (String name) → WF9< R> -
Binds a
cwraped C function taking9arguments and returning a plain (non-struct) value. -
load(
) → void -
Override to perform one-time module initialization.
inherited
-
logError(
Object? message) → void -
inherited
-
logInfo(
Object? message) → void -
inherited
-
logWarn(
Object? message) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDispose(
void fn()) → void -
Registers
fnto be called when this module is disposed.inherited -
pwrap0<
X extends RType> (String name) → WF0< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking0arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap1<
X extends RType> (String name) → WF1< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking1argument and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap2<
X extends RType> (String name) → WF2< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking2arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap3<
X extends RType> (String name) → WF3< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking3arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap4<
X extends RType> (String name) → WF4< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking4arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap5<
X extends RType> (String name) → WF5< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking5arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap6<
X extends RType> (String name) → WF6< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking6arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap7<
X extends RType> (String name) → WF7< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking7arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap8<
X extends RType> (String name) → WF8< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking8arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
pwrap9<
X extends RType> (String name) → WF9< WasmMemoryPointer< X> > -
Binds a
cwraped C function taking9arguments and returning a pointer, wrapped asWasmMemoryPointer<X>. -
qwrap0<
X extends RaylibStruct< (X> >String name) → WF0< StructPointer< X> > -
Binds a
cwraped C function taking0arguments and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap1<
X extends RaylibStruct< (X> >String name) → WF1< StructPointer< X> > -
Binds a
cwraped C function taking1argument and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap2<
X extends RaylibStruct< (X> >String name) → WF2< StructPointer< X> > -
Binds a
cwraped C function taking2argument and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap3<
X extends RaylibStruct< (X> >String name) → WF3< StructPointer< X> > -
Binds a
cwraped C function taking3argument and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap4<
X extends RaylibStruct< (X> >String name) → WF4< StructPointer< X> > -
Binds a
cwraped C function taking4argument and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap5<
X extends RaylibStruct< (X> >String name) → WF5< StructPointer< X> > -
Binds a
cwraped C function taking5argument and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap6<
X extends RaylibStruct< (X> >String name) → WF6< StructPointer< X> > -
Binds a
cwraped C function taking6argument and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap7<
X extends RaylibStruct< (X> >String name) → WF7< StructPointer< X> > -
Binds a
cwraped C function taking7argument and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap8<
X extends RaylibStruct< (X> >String name) → WF8< StructPointer< X> > -
Binds a
cwraped C function taking8argument and returning a struct pointer, wrapped asStructPointer<X>. -
qwrap9<
X extends RaylibStruct< (X> >String name) → WF9< StructPointer< X> > -
Binds a
cwraped C function taking9argument and returning a struct pointer, wrapped asStructPointer<X>. -
run<
T> (String name(), T f()) → T -
Executes
f, logging its label (and optionally timing it) when debug is enabled and the label passes all filters.inherited -
swrap0(
String name) → WF1< void> -
Binds a
cwraped C function taking0arguments that returns a struct via the WASM structure-return (sret) convention. -
swrap1(
String name) → WF2< void> -
Binds a
cwraped C function taking1argument that returns a struct via the WASM structure-return (sret) convention. -
swrap2(
String name) → WF3< void> -
Binds a
cwraped C function taking2arguments that returns a struct via the WASM structure-return (sret) convention. -
swrap3(
String name) → WF4< void> -
Binds a
cwraped C function taking3arguments that returns a struct via the WASM structure-return (sret) convention. -
swrap4(
String name) → WF5< void> -
Binds a
cwraped C function taking4arguments that returns a struct via the WASM structure-return (sret) convention. -
swrap5(
String name) → WF6< void> -
Binds a
cwraped C function taking5arguments that returns a struct via the WASM structure-return (sret) convention. -
swrap6(
String name) → WF7< void> -
Binds a
cwraped C function taking6arguments that returns a struct via the WASM structure-return (sret) convention. -
swrap7(
String name) → WF8< void> -
Binds a
cwraped C function taking7arguments that returns a struct via the WASM structure-return (sret) convention. -
swrap8(
String name) → WF9< void> -
Binds a
cwraped C function taking8arguments that returns a struct via the WASM structure-return (sret) convention. -
symbol<
X extends RType> (String name) → WasmMemoryPointer< X> - Resolves a global symbol exported by the WASM module and wraps its address as a WasmMemoryPointer.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited