Click or drag to resize
DigitalRuneIGraphicsService Interface
Manages graphics-related objects, like graphics screens and presentation targets, and graphics resources.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public interface IGraphicsService

The IGraphicsService type exposes the following members.

Extension Methods
  NameDescription
Public Extension MethodGetCopyFilter
Gets a default CopyFilter that can be used to copy a texture into a render target.
(Defined by PostProcessHelper.)
Public Extension MethodGetDefaultNormalTexture
Gets a 1x1 normal map. The normal vector is (0, 0, 1).
(Defined by TextureHelper.)
Public Extension MethodGetDefaultTexture2DBlack
Gets a black 2D texture with 1x1 pixels.
(Defined by TextureHelper.)
Public Extension MethodGetDefaultTexture2DWhite
Gets a white 2D texture with 1x1 pixels.
(Defined by TextureHelper.)
Public Extension MethodGetDefaultTexture3DBlack
Gets a black 3D texture with 1x1 pixels.
(Defined by TextureHelper.)
Public Extension MethodGetDefaultTexture3DWhite
Gets a white 3D texture with 1x1 pixels.
(Defined by TextureHelper.)
Public Extension MethodGetDefaultTextureCubeBlack
Gets a cubemap texture where each face consists of 1 black pixel.
(Defined by TextureHelper.)
Public Extension MethodGetDefaultTextureCubeWhite
Gets a cubemap texture where each face consists of 1 white pixel.
(Defined by TextureHelper.)
Public Extension MethodGetDownsampleFilter
Gets a default DownsampleFilter that can be used to downsample an image into a low-resolution render target.
(Defined by PostProcessHelper.)
Public Extension MethodGetNormalsFittingTexture
Gets the normals fitting texture for calculating "best fit" normals.
(Defined by TextureHelper.)
Public Extension MethodGetSpriteBatch
Gets a shared SpriteBatch instance.
(Defined by GraphicsHelper.)
Top
Properties
  NameDescription
Public propertyContent
Gets the content manager that can be used to load predefined DigitalRune Graphics content (e.g. predefined shaders, post-processing effects, lookup textures, etc.).
Public propertyData
Gets custom data associated with this graphics service or the graphics device.
Public propertyDeltaTime
Gets the elapsed time since the last frame.
Public propertyEffectBinders
Gets or sets the effect binders.
Public propertyEffectInterpreters
Gets or sets the effect interpreters.
Public propertyFrame
Gets the number of the current frame.
Public propertyGameForm
Gets the main form (main window) of the Game.
Public propertyGraphicsDevice
Gets the graphics device.
Public propertyPresentationTargets
A collection of all presentation targets.
Public propertyRenderTargetPool
Gets or sets the render target pool.
Public propertyScreens
Gets or sets the graphics screens.
Public propertyTime
Gets or sets the total elapsed time.
Top
Remarks

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.

See Also