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

This commit is contained in:
Juan Caldas
2025-06-05 14:18:41 -04:00
committed by GitHub
parent 7dc0f2cc86
commit ad8c9ce4e0
33 changed files with 342 additions and 274 deletions

View File

@@ -14,6 +14,8 @@
* limitations under the License.
*/
#include "common/arguments.h"
#include <filament/Camera.h>
#include <filament/Engine.h>
#include <filament/IndexBuffer.h>
@@ -69,6 +71,7 @@ static constexpr uint16_t TRIANGLE_INDICES[3] = { 0, 1, 2 };
int main(int argc, char** argv) {
Config config;
config.title = "depthtesting";
config.backend = samples::parseArgumentsForBackend(argc, argv);
App app;
auto setup = [&app](Engine* engine, View* view, Scene* scene) {