Add common CLI Args parser for the samples (#8819)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user