Context
The Context class initializes the target platform API in headless mode. It provides a simple way to create compute or off-screen rendering tasks. It can be constructed with a specific platform and an optional device index. For visualization, the separate Window class should be used.
#include <platform/TellusimContext.h>
Constructors
Context constructor.
Context()
explicit Context(Platform platform, uint32_t index = Maxu32)
Methods
Context platform.
Platform getPlatform() const
const char *getPlatformName() const
Context device index.
uint32_t getIndex() const
Check context.
bool isCreated() const
Create context.
bool create()
Flush context.
bool flush()
bool finish()