forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
26
Kha/Sources/kha/graphics1/Graphics.hx
Normal file
26
Kha/Sources/kha/graphics1/Graphics.hx
Normal file
@ -0,0 +1,26 @@
|
||||
package kha.graphics1;
|
||||
|
||||
import kha.Color;
|
||||
|
||||
/**
|
||||
* Basic graphical interface.<br>
|
||||
* Represent old devices with only pixel pushing operations.
|
||||
*/
|
||||
interface Graphics {
|
||||
/**
|
||||
* Begin the graphic operations.
|
||||
* You MUST call this.
|
||||
*/
|
||||
function begin(): Void;
|
||||
|
||||
/**
|
||||
* Terminate all graphical operations and apply them.
|
||||
* You MUST call this at the end.
|
||||
*/
|
||||
function end(): Void;
|
||||
|
||||
/**
|
||||
* Set the pixel color at a specific position.
|
||||
*/
|
||||
function setPixel(x: Int, y: Int, color: Color): Void;
|
||||
}
|
Reference in New Issue
Block a user