ReXGlue SDK
Loading...
Searching...
No Matches
rex::IDriver Class Referenceabstract

#include <rex/driver.h>

Inheritance diagram for rex::IDriver:
[legend]

Public Member Functions

virtual std::string_view GetName () const =0
virtual Result< void > Initialize (IDriverContext &context)=0
virtual void Shutdown ()=0

Detailed Description

The lifecycle every driver shares. The system of its driver type makes every call.

Member Function Documentation

◆ GetName()

virtual std::string_view rex::IDriver::GetName ( ) const
pure virtual

Returns the name players select it by, such as "sdl3" or "xenos".

◆ Initialize()

virtual Result< void > rex::IDriver::Initialize ( IDriverContext & context)
nodiscardpure virtual

Called when the runtime selects this driver. Settings registered here follow the startup layers.

Returns
Ok, or an error that fails driver selection for the system.

◆ Shutdown()

virtual void rex::IDriver::Shutdown ( )
pure virtual

Stops using the driver. Called once, after the title detaches when one ran.


The documentation for this class was generated from the following file: