M2Screen Service
Service for managing the screen stack, z-ordering, and the frame rendering loop.
Properties
Functions
Turns the phone-side HUD preview on or off.
Returns the current rendering center X offset, used for personal display alignment.
Returns the current rendering center Y offset, used for personal display alignment.
Number of draw-object ids currently allocated to the glasses out of the fixed 255-id pool (id 0 is reserved as a sentinel). Every on-screen drawable (card, text, image, animator target…) holds one id for as long as it's on screen; exhausting the pool fails further allocations (silently, on the wire). Poll this to warn the user before that happens.
Registers a listener for frame-based draw events.
Registers a listener for screen stack and rendering configuration events.
Removes a regular (non-system) screen from the stack and pops the next screen to the top.
Removes the current topmost screen (if present).
Sets the rendering center X offset for personal display alignment.
Sets the rendering center Y offset for personal display alignment.
Unregisters a previously registered draw event listener.
Unregisters a previously registered screen event listener.