Table of Contents

Interface ITextureBitmapRegistry

Namespace
TileWorld.Engine.Hosting
Assembly
TileWorld.Engine.dll

Exposes host-owned texture registration for backend-neutral bitmap data.

public interface ITextureBitmapRegistry

Methods

HasTexture(string)

Returns whether the host has already registered a texture for the supplied key.

bool HasTexture(string textureKey)

Parameters

textureKey string

The backend-neutral texture key.

Returns

bool

true when the texture key is already registered.

RegisterTextureBitmap(string, TextureBitmapRgba32)

Registers a backend-neutral bitmap as a host texture resource.

void RegisterTextureBitmap(string textureKey, TextureBitmapRgba32 bitmap)

Parameters

textureKey string

The backend-neutral texture key.

bitmap TextureBitmapRgba32

The bitmap data to upload.