Skip to content

GraphicsAPI reference

Interface IGraphicsDevice

Namespace: MicroEngine.Graphics
Assembly: MicroEngine.Graphics2D.dll
Guide: Graphics

Creates device resources. Separated so headless tests can provide fakes.

C#
public interface IGraphicsDevice

Properties

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.

C#
TextureFilter DefaultFilter { get; set; }

Property Value

TextureFilter

Methods

CreateTexture(PixelImage, TextureFilter)

Uploads image as a texture sampled with filter. The caller owns the texture and disposes it.

C#
Texture CreateTexture(PixelImage image, TextureFilter filter)

Parameters

image PixelImage

filter TextureFilter

Returns

Texture

CreateTexture(PixelImage)

Uploads image as a texture sampled with DefaultFilter. The caller owns the texture and disposes it.

C#
Texture CreateTexture(PixelImage image)

Parameters

image PixelImage

Returns

Texture