testing library

What a test of a game built on this package reaches that the game does not: the opener of the device a game's Model3dComponents share.

Not for a game. The main library has no global to change; a test that needs a software device under its components says so here, and puts the opener back when it is done.

Functions

overrideSharedDeviceOpener(BackendOpener open) → Registration
Opens the device each game's Model3dComponents share with open rather than flutter3d_app's openDevice, until the returned Registration is cancelled, which puts back the opener there was before. open is a BackendOpener, handed the DeviceRequest every other opener is.