Raylib class

Inheritance

Constructors

Raylib(void dartMain(Raylib), {RaylibTempBaseOptions? tempOptions, Random? random})

Properties

Audio RaylibAudio
getter/setter pair
AudioD RaylibAudioD
getter/setter pairoverride-getter
Camera RaylibCamera
getter/setter pair
CameraD RaylibCameraD
getter/setter pairoverride-getter
Color RaylibColors
getter/setter pairoverride-getter
Core RaylibCore
getter/setter pair
CoreD RaylibCoreD
getter/setter pairoverride-getter
DEG2RAD double
finalinherited
Ease RaylibEasings
getter/setter pairoverride-getter
EPSILON double
finalinherited
Gui RaylibGui
getter/setter pair
GuiD RaylibGuiD
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setterinherited
LightD RaylibLightD
getter/setter pairoverride-getter
M_1_PI double
finalinherited
M_2_PI double
finalinherited
M_2_SQRTPI double
finalinherited
M_E double
finalinherited
M_LN10 double
finalinherited
M_LN2 double
finalinherited
M_LOG10E double
finalinherited
M_LOG2E double
finalinherited
M_PI double
finalinherited
M_PI_2 double
finalinherited
M_PI_4 double
finalinherited
M_SQRT1_2 double
finalinherited
M_SQRT2 double
finalinherited
MATERIAL_MAP_DIFFUSE MaterialMapIndex
finalinherited
MATERIAL_MAP_SPECULAR MaterialMapIndex
finalinherited
Matrix RaylibMatrices
getter/setter pairoverride-getter
MAX_MATERIAL_MAPS int
finalinherited
PI double
finalinherited
Quat RaylibQuaternions
getter/setter pairoverride-getter
RAD2DEG double
finalinherited
RAND_MAX int
finalinherited
random Random
getter/setter pairinherited
RAYLIB_VERSION String
finalinherited
RAYLIB_VERSION_MAJOR int
finalinherited
RAYLIB_VERSION_MINOR int
finalinherited
RAYLIB_VERSION_PATCH int
finalinherited
registeredModules List<RaylibModule<RaylibBase>>
no setterinherited
Rlgl RaylibRlgl
getter/setter pair
RlglD RaylibRlglD
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
SHADER_LOC_MAP_DIFFUSE int
finalinherited
SHADER_LOC_MAP_SPECULAR int
finalinherited
Temp RaylibTemp
getter/setter pairoverride-getter
tempOptions RaylibTempBaseOptions
finalinherited
Utils RaylibUtils
getter/setter pairoverride-getter
Vector RaylibVectors
getter/setter pairoverride-getter

Methods

cancelMainLoop() → void
Clamp(num value, num min, num max) double
inherited
debugEverything(bool debug) → void
Enables or disables debug logging across all modules and the temp allocator.
inherited
dispose() → void
Disposes all registered modules.
inherited
FloatEquals(double x, double y) bool
inherited
Lerp(num start, num end, num amount) double
inherited
logError(Object? message) → void
Logs a message at the error level.
override
logInfo(Object? message) → void
Logs a message at the info level.
override
logWarn(Object? message) → void
Logs a message at the warn level.
override
module<T extends RaylibModule<RaylibBase>>() → T
Returns the registered module of type T. Throws if not registered.
inherited
Normalize(num value, num start, num end) double
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rand() double
Returns a random double in [0.0, 1.0).
inherited
randC() double
Returns a random double in [0.0, RAND_MAX), mirroring C's rand() range.
inherited
registerModule<T extends RaylibModule<RaylibBase>>(T module) → T
Registers module, calls RaylibModule.doLoad on it, and returns it. Throws StateError if a module of the same type is already registered.
inherited
Remap(num value, num inputStart, num inputEnd, num outputStart, num outputEnd) double
inherited
setMainLoop(void loop()) → void
timeIt<T>(String label, T fn()) → T
Executes fn, logs its elapsed time under label, and rethrows any exception with timing info attached.
inherited
toString() String
A string representation of this object.
inherited
Wrap(num value, num min, num max) double
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance Raylib
no setter