IGraphicsService Interface |
Namespace: DigitalRune.Graphics
The IGraphicsService type exposes the following members.
Name | Description | |
---|---|---|
GetCopyFilter |
Gets a default CopyFilter that can be used to copy a texture into a render
target.
(Defined by PostProcessHelper.) | |
GetDefaultNormalTexture |
Gets a 1x1 normal map. The normal vector is (0, 0, 1).
(Defined by TextureHelper.) | |
GetDefaultTexture2DBlack |
Gets a black 2D texture with 1x1 pixels.
(Defined by TextureHelper.) | |
GetDefaultTexture2DWhite |
Gets a white 2D texture with 1x1 pixels.
(Defined by TextureHelper.) | |
GetDefaultTexture3DBlack |
Gets a black 3D texture with 1x1 pixels.
(Defined by TextureHelper.) | |
GetDefaultTexture3DWhite |
Gets a white 3D texture with 1x1 pixels.
(Defined by TextureHelper.) | |
GetDefaultTextureCubeBlack |
Gets a cubemap texture where each face consists of 1 black pixel.
(Defined by TextureHelper.) | |
GetDefaultTextureCubeWhite |
Gets a cubemap texture where each face consists of 1 white pixel.
(Defined by TextureHelper.) | |
GetDownsampleFilter |
Gets a default DownsampleFilter that can be used to downsample an image into
a low-resolution render target.
(Defined by PostProcessHelper.) | |
GetNormalsFittingTexture |
Gets the normals fitting texture for calculating "best fit" normals.
(Defined by TextureHelper.) | |
GetSpriteBatch |
Gets a shared SpriteBatch instance.
(Defined by GraphicsHelper.) |
Name | Description | |
---|---|---|
Content |
Gets the content manager that can be used to load predefined DigitalRune Graphics content
(e.g. predefined shaders, post-processing effects, lookup textures, etc.).
| |
Data |
Gets custom data associated with this graphics service or the graphics device.
| |
DeltaTime |
Gets the elapsed time since the last frame.
| |
EffectBinders |
Gets or sets the effect binders.
| |
EffectInterpreters |
Gets or sets the effect interpreters.
| |
Frame |
Gets the number of the current frame.
| |
GameForm |
Gets the main form (main window) of the
Game.
| |
GraphicsDevice |
Gets the graphics device.
| |
PresentationTargets |
A collection of all presentation targets.
| |
RenderTargetPool |
Gets or sets the render target pool.
| |
Screens |
Gets or sets the graphics screens.
| |
Time |
Gets or sets the total elapsed time.
|
The IGraphicsService is the main interface for graphics-related tasks. It provides access to
Graphics screens: A GraphicsScreen renders game content, like the 3D scene or the HUD. The graphics service manages a collection of graphics screens, which are rendered back to front.
Presentation targets: By default, the output is written into the back buffer. Optionally, the output can be written into a presentation target. A presentation target (see interface IPresentationTarget) is either a Windows Forms control (FormsPresentationTarget) or a WPF control (ElementPresentationTarget, D3DImagePresentationTarget) where the graphics can be displayed.