RaylibBase class abstract

Root class for a fully initialized Raylib context, exposing all modules, extensions, lifecycle management, and forwarded constants and functions.

Implementers

Constructors

RaylibBase({RaylibTempBaseOptions? tempOptions, Random? random})

Properties

AudioD RaylibAudioModuleBase<RaylibBase, AudioStreamBase, MusicBase<dynamic, AudioStreamBase>, SoundBase<dynamic, AudioStreamBase>, WaveBase, AudioCallbackBase>
no setter
CameraD RaylibCameraModuleBase<RaylibBase, Camera3DBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, MatrixBase, QuaternionBase, Vector3Base, Vector4Base>
no setter
Color RaylibColorExtensionBase<RaylibBase, dynamic>
no setter
CoreD RaylibCoreModuleBase<RaylibBase, dynamic, AutomationEventListBase<dynamic, AutomationEventBase>, AutomationEventBase, BoneInfoBase, BoundingBoxBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, Camera2DBase<dynamic, Vector2Base<dynamic, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, Camera3DBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, ColorBase, FilePathListBase, FontBase<dynamic, TextureBase, RectangleBase, GlyphInfoBase<dynamic, ImageBase>, ImageBase>, GlyphInfoBase<dynamic, ImageBase>, ImageBase, MaterialBase<dynamic, ShaderBase, MaterialMapBase<dynamic, TextureBase, ColorBase>, TextureBase, ColorBase>, MaterialMapBase<dynamic, TextureBase, ColorBase>, MatrixBase, MeshBase<dynamic, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, ModelBase<dynamic, MeshBase<dynamic, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, MatrixBase, Vector3Base, QuaternionBase, Vector4Base, MaterialBase<dynamic, ShaderBase, MaterialMapBase<dynamic, TextureBase, ColorBase>, TextureBase, ColorBase>, ShaderBase, MaterialMapBase<dynamic, TextureBase, ColorBase>, TextureBase, ColorBase, TransformBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, BoneInfoBase>, ModelAnimationBase<dynamic, BoneInfoBase, TransformBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, NPatchInfoBase<dynamic, RectangleBase>, QuaternionBase, RayBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, RayCollisionBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, RectangleBase, RenderTextureBase<dynamic, TextureBase>, ShaderBase, TextureBase, TransformBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base>, Vector2Base<dynamic, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, Vector3Base, Vector4Base, VrDeviceInfoBase, VrStereoConfigBase<dynamic, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, LoadFileDataCallbackBase, SaveFileDataCallbackBase, LoadFileTextCallbackBase, SaveFileTextCallbackBase>
no setter
DEG2RAD double
final
Ease RaylibEaseExtensionBase<RaylibBase>
no setter
EPSILON double
final
GuiD RaylibGuiModuleBase<RaylibBase, ColorBase, FontBase<dynamic, TextureBase, RectangleBase, GlyphInfoBase<dynamic, ImageBase>, ImageBase>, GlyphInfoBase<dynamic, ImageBase>, ImageBase, MatrixBase, QuaternionBase, RectangleBase, TextureBase, Vector2Base<dynamic, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, Vector3Base, Vector4Base>
no setter
hashCode int
The hash code for this object.
no setterinherited
LightD RaylibLightModuleBase<RaylibBase, ColorBase, LightBase<dynamic, Vector3Base, MatrixBase, QuaternionBase, Vector4Base, ColorBase>, MatrixBase, QuaternionBase, ShaderBase, Vector3Base, Vector4Base>
no setter
M_1_PI double
final
M_2_PI double
final
M_2_SQRTPI double
final
M_E double
final
M_LN10 double
final
M_LN2 double
final
M_LOG10E double
final
M_LOG2E double
final
M_PI double
final
M_PI_2 double
final
M_PI_4 double
final
M_SQRT1_2 double
final
M_SQRT2 double
final
MATERIAL_MAP_DIFFUSE MaterialMapIndex
final
MATERIAL_MAP_SPECULAR MaterialMapIndex
final
Matrix RaylibMatrixExtensionBase<RaylibBase, MatrixBase, QuaternionBase, RectangleBase, Vector3Base, Vector4Base>
no setter
MAX_MATERIAL_MAPS int
final
PI double
final
Quat RaylibQuaternionExtensionBase<RaylibBase, MatrixBase, QuaternionBase, RectangleBase, Vector2Base<dynamic, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, Vector3Base, Vector4Base>
no setter
RAD2DEG double
final
RAND_MAX int
final
random Random
getter/setter pair
RAYLIB_VERSION String
final
RAYLIB_VERSION_MAJOR int
final
RAYLIB_VERSION_MINOR int
final
RAYLIB_VERSION_PATCH int
final
registeredModules List<RaylibModule<RaylibBase>>
no setter
RlglD RaylibRlglModuleBase<RaylibBase, MatrixBase, QuaternionBase, RlDrawCallBase, RlRenderBatchBase<dynamic, RlVertexBufferBase, RlDrawCallBase>, RlVertexBufferBase, Vector3Base, Vector4Base>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
SHADER_LOC_MAP_DIFFUSE int
final
SHADER_LOC_MAP_SPECULAR int
final
Temp RaylibTempBase<RaylibBase>
no setter
tempOptions RaylibTempBaseOptions
final
Utils RaylibUtilsModuleBase<RaylibBase>
no setter
Vector RaylibVectorExtensionBase<RaylibBase, MatrixBase, QuaternionBase, Vector2Base<dynamic, MatrixBase, Vector3Base, QuaternionBase, Vector4Base>, Vector3Base, Vector4Base>
no setter

Methods

Clamp(num value, num min, num max) double
debugEverything(bool debug) → void
Enables or disables debug logging across all modules and the temp allocator.
dispose() → void
Disposes all registered modules.
FloatEquals(double x, double y) bool
Lerp(num start, num end, num amount) double
logError(Object? message) → void
Logs a message at the error level.
logInfo(Object? message) → void
Logs a message at the info level.
logWarn(Object? message) → void
Logs a message at the warn level.
module<T extends RaylibModule<RaylibBase>>() → T
Returns the registered module of type T. Throws if not registered.
Normalize(num value, num start, num end) double
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).
randC() double
Returns a random double in [0.0, RAND_MAX), mirroring C's rand() range.
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.
Remap(num value, num inputStart, num inputEnd, num outputStart, num outputEnd) double
timeIt<T>(String label, T fn()) → T
Executes fn, logs its elapsed time under label, and rethrows any exception with timing info attached.
toString() String
A string representation of this object.
inherited
Wrap(num value, num min, num max) double

Operators

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