ITidaRuntime.initialize

Static function to initialize the runtime. Allocates memory for runtime and executes its functions of accepting arguments, loading the necessary libraries and connecting to the window manager through its interface functions.

An example of how to load individual libraries:

import tida.runtime;

int main(string[] args)
{
    TidaRuntime.initialize(args, [FreeType, OpenAL]);

    return 0;
}
interface ITidaRuntime
@safe @trusted static final
void
initialize
(
string[] arguments = []
,)

Parameters

arguments string[]

Arguments that were nested in the main function. They will be stored in the runtime memory from where they can be read. Rantheim doesn't read such arguments.

libs LibraryUnite[]

List of libraries to download. Please note that this does not affect libraries that the framework does not use. Notable libraries are listed $(HREF ../runtime.html#EGL, here).

Throws

$(OBJECTREF Exception) if during initialization the libraries were not loaded or the runner could not connect to the window manager.

Meta