Skip to content
RblSb edited this page Sep 5, 2018 · 2 revisions

API docs

kha.graphics2 is a 2D drawing API providing functions to draw images and basic forms and applying 2D transformations. On platforms which support kha.graphics4 graphics2 additionally provides support for custom shaders.

The graphics2 API is intentionally designed to be similar to APIs like the html5 canvas API or the Java Painter API and maps efficiently to those. On more capable targets graphics2 runs on a very fast graphics4 based implementation.

kha.graphics2 is available on all platforms.

Clone this wiki locally