extend to support rendering to RenderTarget/OpenGL texture on Linux

This commit is contained in:
Nick Fisher
2022-12-08 17:36:44 +08:00
parent 4c1a2e9e01
commit 52b331fc2b
130 changed files with 56387 additions and 1168 deletions

View File

@@ -75,6 +75,9 @@ class _MyAppState extends State<MyApp> {
case -1:
await _filamentController.initialize();
break;
case -2:
await _filamentController.render();
break;
case 0:
await _filamentController
.setBackgroundImage(
@@ -83,7 +86,9 @@ class _MyAppState extends State<MyApp> {
case 1:
await _filamentController.loadSkybox(
'assets/default_env/default_env_skybox.ktx');
await _filamentController.loadSkybox(
break;
case -3:
await _filamentController.loadIbl(
'assets/default_env/default_env_ibl.ktx');
break;
case 2:
@@ -264,6 +269,8 @@ class _MyAppState extends State<MyApp> {
<PopupMenuEntry<int>>[
const PopupMenuItem(
value: -1, child: Text("initialize")),
const PopupMenuItem(
value: -2, child: Text("render")),
const PopupMenuItem(
value: 0,
child: Text("load background image")),
@@ -271,6 +278,10 @@ class _MyAppState extends State<MyApp> {
value: 1,
child: Text('load skybox'),
),
const PopupMenuItem(
value: -3,
child: Text('load IBL'),
),
const PopupMenuItem(
value: 2,
child: Text('remove skybox'),