BackgroundShaderManager class

Helper class to manage background shader loading and texture binding

Constructors

BackgroundShaderManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
isReady bool
Whether the shader program is loaded (ready to create shader instances)
no setter
loadError String?
Error message if loading failed
no setter
loadFailed bool
Whether shader loading failed permanently (after max retries)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createShaderWithTexture({required Image starTexture}) FragmentShader?
Create a shader with the star texture bound Returns a new shader instance each time to ensure fresh state
forceReload() → void
Force a complete reload of the shader program This is useful for web platform where WebGL context can be lost
loadShader() Future<bool>
Load the background shader
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetLoadState() → void
Reset the failure state to allow retrying
toString() String
A string representation of this object.
inherited

Operators

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