GraphicsAPI reference
Interface IGraphicsDevice
Namespace: MicroEngine.Graphics
Assembly: MicroEngine.Graphics2D.dll
Guide: Graphics
Creates device resources. Separated so headless tests can provide fakes.
public interface IGraphicsDeviceProperties
DefaultFilter
The filter of textures created without one: CreateTexture, atlases. The engine sets it
from the game settings (TextureFilter, or its presentation’s default sampler) before Game.Load.
Glyph pages of a scalable font follow it too unless the font’s options choose a filter.
TextureFilter DefaultFilter { get; set; }Property Value
Methods
CreateTexture(PixelImage, TextureFilter)
Uploads image as a texture sampled with filter. The caller owns the texture and disposes it.
Texture CreateTexture(PixelImage image, TextureFilter filter)Parameters
image PixelImage
filter TextureFilter
Returns
CreateTexture(PixelImage)
Uploads image as a texture sampled with DefaultFilter. The caller owns the texture and disposes it.
Texture CreateTexture(PixelImage image)Parameters
image PixelImage