SharedResources

Namespace: Murder.Core.Graphics
Assembly: Murder.dll

public static class SharedResources

Shared resources used per game instance. TODO: Move to RenderContext?

⭐ Methods

CreatePixel(Color)

public Texture2D CreatePixel(Color color)

Creates a new 1x1 pixel texture with a given color

Parameters
color Color

Returns
Texture2D

GetOrCreatePixel()

public Texture2D GetOrCreatePixel()

Returns
Texture2D