Click or drag to resize
DigitalRuneTextureHelper Class
Provides helper methods for textures.
Inheritance Hierarchy
SystemObject
  DigitalRune.GraphicsTextureHelper

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static class TextureHelper

The TextureHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetDefaultNormalTexture
Gets a 1x1 normal map. The normal vector is (0, 0, 1).
Public methodStatic memberGetDefaultTexture2DBlack
Gets a black 2D texture with 1x1 pixels.
Public methodStatic memberGetDefaultTexture2DWhite
Gets a white 2D texture with 1x1 pixels.
Public methodStatic memberGetDefaultTexture3DBlack
Gets a black 3D texture with 1x1 pixels.
Public methodStatic memberGetDefaultTexture3DWhite
Gets a white 3D texture with 1x1 pixels.
Public methodStatic memberGetDefaultTextureCubeBlack
Gets a cubemap texture where each face consists of 1 black pixel.
Public methodStatic memberGetDefaultTextureCubeWhite
Gets a cubemap texture where each face consists of 1 white pixel.
Public methodStatic memberGetNormalsFittingTexture
Gets the normals fitting texture for calculating "best fit" normals.
Public methodStatic memberIsFloatingPointFormat
Determines whether the specified surface format is a floating-point format.
Top
Remarks

This class provides several default textures (e.g. GetDefaultTexture2DWhite(IGraphicsService)). These default textures are only created once per graphics device and are reused. These textures must not be modified.

See Also