InputAPI reference
Interface IOverlayCanvas
Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.Touch.dll
Guide: Input
Primitive drawing in screen pixels, implemented by each backend for ITouchOverlay.
public interface IOverlayCanvasMethods
FillCircle(Vector2, float, Color)
Fills a circle.
void FillCircle(Vector2 center, float radius, Color color)Parameters
center Vector2
radius float
color Color
FillRect(RectF, Color)
Fills a rectangle.
void FillRect(RectF rect, Color color)Parameters
rect RectF
color Color
FillTriangle(Vector2, Vector2, Vector2, Color)
Fills a triangle.
void FillTriangle(Vector2 a, Vector2 b, Vector2 c, Color color)Parameters
a Vector2
b Vector2
c Vector2
color Color
Image(PixelImage, RectF, Color)
Draws image stretched over destination without smoothing, multiplied by
tint (white keeps its colours; the alpha fades it). Backends keep one texture per image, so the
same PixelImage instance should be passed every frame. Canvases that cannot draw images
keep the default, which draws nothing.
void Image(PixelImage image, RectF destination, Color tint)Parameters
image PixelImage
destination RectF
tint Color
Ring(Vector2, float, float, Color)
A circle outline of the given thickness, drawn inward from radius.
void Ring(Vector2 center, float radius, float thickness, Color color)Parameters
center Vector2
radius float
thickness float
color Color
Text(string, Vector2, float, Color)
Short text centred on center, about height pixels tall.
void Text(string text, Vector2 center, float height, Color color)Parameters
text string
center Vector2
height float
color Color