Class CurvedSpacetimeRenderModuleEntrypoint
- All Implemented Interfaces:
ModuleInitializer
main entrypoint.
The render module is an API: it defines what a window and its input look like, and owns no windowing library itself.
This entrypoint therefore does little beyond loading configuration and then handing itself to whichever
implementations depend on it — GLFW today — through the curved_spacetime_render_module_dependent entrypoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the render module's entrypoint. -
Method Summary
Modifier and TypeMethodDescriptionReturns this module's configuration.Returns the queue by which this module receives the entrypoints it depends on.Returns the logger this module writes its diagnostics to.voidonInitialize(Engine engine) Brings this module up.
-
Constructor Details
-
CurvedSpacetimeRenderModuleEntrypoint
public CurvedSpacetimeRenderModuleEntrypoint()Creates the render module's entrypoint.Called by the loader; nothing happens until
onInitialize(Engine)runs.
-
-
Method Details
-
onInitialize
Description copied from interface:ModuleInitializerBrings this module up.An implementation sets its logger's level from the engine's configuration, loads its own configuration and saves it if loading substituted defaults, receives any dependencies it declares through
ModuleInitializer.getDependencyModuleTransferQueue(), performs any operations it must perform during initialization, and finally invokes its own dependent entrypoints, passing itself and the engine.- Specified by:
onInitializein interfaceModuleInitializer- Parameters:
engine- the engine driving initialization
-
getConfig
Description copied from interface:ModuleInitializerReturns this module's configuration.- Specified by:
getConfigin interfaceModuleInitializer- Returns:
- the configuration, or
nullbeforeModuleInitializer.onInitialize(Engine)has loaded it
-
getLogger
Description copied from interface:ModuleInitializerReturns the logger this module writes its diagnostics to.The same instance is returned for the lifetime of this entrypoint.
- Specified by:
getLoggerin interfaceModuleInitializer- Returns:
- this module's logger
-
getDependencyModuleTransferQueue
Description copied from interface:ModuleInitializerReturns the queue by which this module receives the entrypoints it depends on.A module does not look its dependencies up. Each module it depends on invokes a dependent entrypoint, which transfers that module's own entrypoint into this queue. The same instance is returned for the lifetime of this entrypoint; a fresh or defensively copied queue breaks the handshake, because the producer transfers into whichever queue this method returned.
- Specified by:
getDependencyModuleTransferQueuein interfaceModuleInitializer- Returns:
- this module's dependency transfer queue
-