Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

35
Kha/Sources/kha/Canvas.hx Normal file
View File

@ -0,0 +1,35 @@
package kha;
/**
* Interface for a generic Canvas with different APIs,<br>
* that can be used to draw graphics.
*/
interface Canvas {
/**
* The width of the canvas in pixels.
*/
var width(get, null): Int;
/**
* The height of the canvas in pixels.
*/
var height(get, null): Int;
/**
* The Graphics1 interface object.<br>
* Basic setPixel operation.
*/
var g1(get, null): kha.graphics1.Graphics;
/**
* The Graphics2 interface object.<br>
* Use this for 2D operations.
*/
var g2(get, null): kha.graphics2.Graphics;
/**
* The Graphics4 interface object.<br>
* Use this for 3D operations.
*/
var g4(get, null): kha.graphics4.Graphics;
}