Click or drag to resize
DigitalRuneGraphicsHelper Methods

The GraphicsHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDrawFullScreenQuad
Draws a full-screen quad.
Public methodStatic memberDrawQuad(GraphicsDevice, Rectangle)
Draws a screen-aligned quad.
Public methodStatic memberDrawQuad(GraphicsDevice, VertexPositionTexture, VertexPositionTexture)
Draws a screen-aligned quad.
Public methodStatic memberDrawQuad(GraphicsDevice, Rectangle, Vector2F, Vector2F)
Draws a screen-aligned quad.
Public methodStatic memberGetAngularAttenuation
Computes the angular attenuation (spotlight falloff) for a given angle.
Public methodStatic memberGetCubeMapForwardDirection
Gets the camera forward direction for rendering into a cube map face.
Public methodStatic memberGetCubeMapUpDirection
Gets the camera up direction for rendering into a cube map face.
Public methodStatic memberGetDistanceAttenuation
Computes the light attenuation factor for a given distance.
Public methodStatic memberGetFrustumFarCorners(Projection, Vector3)
Gets the view space positions of the 4 far corners of the viewing frustum.
Public methodStatic memberGetFrustumFarCorners(Projection, Vector2F, Vector2F, Vector3)
Gets the view space positions of the 4 far corners of a quad at the far plane of the viewing frustum.
Public methodStatic memberGetLightContribution
Gets a factor that is an approximation of the perceived light contribution of the given light falling on an object at the given world space position.
Public methodStatic memberGetScissorRectangle(CameraNode, Viewport, IGeometricObject)
Gets a scissor rectangle that encloses the specified geometric object.
Public methodStatic memberGetScissorRectangle(CameraNode, Viewport, Vector3F, Single)
Gets a scissor rectangle that encloses the specified sphere.
Public methodStatic memberGetSpriteBatch
Gets a shared SpriteBatch instance.
Public methodStatic memberGetUniqueColor
Gets a unique color for an object.
Public methodStatic memberGetViewNormalizedDistance(Single, Matrix44F)
Converts the specified distance to a view-normalized distance ("LOD distance").
Public methodStatic memberGetViewNormalizedDistance(SceneNode, CameraNode)
Calculates the view-normalized distance ("LOD distance") of the specified scene node.
Public methodStatic memberProject(Viewport, Vector3F, Matrix44F)
Projects a position from world space into screen space.
Public methodStatic memberProject(Viewport, Vector3F, Matrix44F, Matrix44F)
Projects a position from world space into screen space.
Public methodStatic memberProject(Viewport, Vector3F, Matrix44F, Matrix44F, Matrix44F)
Projects a position from object space into screen space.
Public methodStatic memberResetTextures
Sets the textures of all samplers to .
Public methodStatic memberTakeScreenshot
Creates a texture containing the content of the current back buffer. (Only available in the HiDef profile.)
Public methodStatic memberUnproject(Viewport, Vector3F, Matrix44F)
Projects a position from screen space into view space.
Public methodStatic memberUnproject(Viewport, Vector3F, Matrix44F, Matrix44F)
Projects a position from screen space into world space.
Public methodStatic memberUnproject(Viewport, Vector3F, Matrix44F, Matrix44F, Matrix44F)
Projects a position from screen space into object space.
Top
See Also