Add common CLI Args parser for the samples (#8819)

This commit is contained in:
Juan Caldas
2025-06-05 18:18:41 +00:00
committed by GitHub
parent 7dc0f2cc86
commit ad8c9ce4e0
33 changed files with 342 additions and 274 deletions
+3
View File
@@ -14,6 +14,8 @@
* limitations under the License.
*/
#include "common/arguments.h"
#include <filament/Engine.h>
#include <filament/View.h>
#include <filament/Scene.h>
@@ -29,6 +31,7 @@ using namespace filament;
int main(int argc, char** argv) {
Config config;
config.title = "strobecolor";
config.backend = samples::parseArgumentsForBackend(argc, argv);
Skybox* skybox;
auto setup = [&skybox](Engine* engine, View* view, Scene* scene) {