finished (?)

This commit is contained in:
2021-06-25 20:12:25 -05:00
parent cf00c7c212
commit df29e4d0ef
11 changed files with 150 additions and 150 deletions

14
ts-lua/types/D3D.d.ts vendored
View File

@@ -1,10 +1,22 @@
/**
* D3D Functions
*
* These functions should only be used from renderers: feature, which can be set through the renderer property
*
* Renderer callbacks are executed from the d3d thread
* @example
* menu.add_feature("d3d renderer", "toggle", 0, nil).renderer = d3d_draw
* @public
* @noSelf
*/
declare namespace d3d {
function draw_text(text: string, pos: v2, size: v2, scale: float, color: int, flags: int): void;
function register_sprite(path: string): int;
function draw_sprite(id: int, pos: v2, scale: float, rot: float, color: int): void;
function get_sprite_origin(id: int): v2;
function get_sprite_size(id: int): v2;
function draw_line(start: v2, end: v2, size: int, color: int): void;
function draw_rect(pos: v2, size: v2, color: int): void;
}