App
The App class represents an application that is initialized and configured using command-line arguments and platform-specific settings. It provides mechanisms to retrieve various command-line parameters, such as platform type, device, window dimensions, and multisampling settings. The class also handles the application version control through predefined release versions.
#include <TellusimApp.h>
Constructors
App(int32_t argc, char **argv)
Methods
Clear application parameters.
void clear()
Default command line parameters.
Platform getPlatform() const
uint32_t getDevice() const
uint32_t getWidth() const
uint32_t getHeight() const
uint32_t getMultisample() const
Custom command line arguments.
uint32_t getNumArguments() const
const String getArgument(uint32_t num) const
const Array<String> getArguments() const
Checks if the command line argument is present.
bool isArgument(const char *name) const
Get command line argument by name.
const String getArgument(const char *name) const
Type | Name | Description |
---|---|---|
const char* | name | Command line argument name. |
Create application.
bool create(Platform platform = PlatformUnknown, uint32_t version = Version)
Set default application parameters (will be overridden by command line parameters).
static void setPlatform(Platform platform, uint32_t device = Maxu32)
static void setSize(uint32_t width, uint32_t height, uint32_t multisample = 0)
Binary info.
static bool isBuildDebug()
static bool isBuildFloat64()
static String getBuildDate()
static String getBuildInfo()
static uint32_t getVersion()
static uint64_t getAPIHash()
Enums
Release version.
Name | Value |
---|---|
Version_19 | 20221010 |
Version_20 | 20221109 |
Version_21 | 20221122 |
Version_22 | 20221222 |
Version_23 | 20230117 |
Version_24 | 20230217 |
Version_25 | 20230402 |
Version_26 | 20230509 |
Version_27 | 20230612 |
Version_28 | 20230718 |
Version_29 | 20230824 |
Version_30 | 20231029 |
Version_31 | 20231113 |
Version_32 | 20231212 |
Version_33 | 20240116 |
Version_34 | 20240216 |
Version_35 | 20240320 |
Version_36 | 20240427 |
Version_37 | 20240515 |
Version_38 | 20250215 |
Version_39 | 20250322 |
Version_40 | 20250429 |
Version | Version_40 |