platform library
For the platform plugins (package:fynkel_flutter): the views they show
on screen. Games use FynkelView instead.
Classes
- AndroidSurfaceView
-
A view that draws a World into an Android
Surfacefor Flutter to show. package:fynkel_flutter'sFynkelViewmakes one and hands address to its Kotlin plugin, which gives it a surface (and with it the size) through JNI; resize changes nothing here. A game never uses it directly. It must be disposed: an Android view left for the garbage collector stays allocated, with its render worker. - AppleLayerView
-
A view that draws a World straight to a
CAMetalLayerthe Flutter plugin puts under Flutter's view (iOS). package:fynkel_flutter'sFynkelViewmakes one and hands address to its Swift plugin, which gives it a layer (and with it the size) through attachAddress; resize changes nothing here. A game never uses it directly. It must be disposed: it's never freed by the garbage collector. - AppleView
-
A view that draws a World into IOSurfaces for Flutter to show on
macOS and iOS. package:fynkel_flutter's
FynkelViewmakes one and hands address and the function addresses to its Swift plugin; a game never uses it directly. It must be disposed: an Apple view left for the garbage collector stays allocated, with its render worker.
Functions
-
cameraObjectId(
Camera camera, World world) → int -
For views: the id of
camera's object while it's a live object ofworld, else -1, which names no object.