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(Future<GraphicsDevice> open({required int height, required int width})) → void Function()
Opens the device each game's Model3dComponents share with open rather than flutter3d_app's openDevice, until the function returned is called, which puts back the opener there was before.