IGraphicsComponent
Description
- Extended by
-
Component abstract
IRenderStage
ISceneEntityView
IWidget
IWidgetGui
ObjectList sealed
SceneView sealed
ScreenLabelPlacement sealed
TerrainView sealed
Base interface for user interface components that interact with an Graphics context.
The order method calls on a IGraphicsComponent is this:
-
GraphicsResize
The first call is made right after attach. Each time the screen size changes, the method is called again once. -
GraphicsResolution
The first call is made right after attach. Each time the screen DPI resolution changes, the method is called again once.
Public / Methods
GraphicsAttach
Attaches this component to the given Graphics context.
All graphics-related resources should be created here.
Do not use the screen size of graphics in here, as it may not be valid (see IGraphicsContext.Graphics for details). Instead, use the screen size that is provided by GraphicsResize.
- RenderException
-
If a graphics subsystem error has occurred.
GraphicsDetach
Detaches this user interface component from its Graphics context.
All graphics-related resources should be disposed here.