WiiDuktape/types.d.ts

35 lines
971 B
TypeScript
Raw Normal View History

2024-06-25 01:31:56 +00:00
declare interface RGBA {
__brand: "RGBA"
}
declare interface FilePtr {
__brand: "FilePtr"
}
declare interface GRRLibTexture {
__brand: "GRRLibTexture"
}
declare interface Pipe {
top_y: number
bottom_y: number
position: number
time_active: number
};
declare namespace wii {
2024-06-25 01:31:56 +00:00
function print(message: string): void
function exit(): void
2024-06-25 01:31:56 +00:00
namespace pad {
function buttons_down(): number
}
namespace grrlib {
2024-06-25 01:31:56 +00:00
function load_texture(file: FilePtr): GRRLibTexture
function fill_screen(color: RGBA): void
2024-06-25 01:31:56 +00:00
function draw_img(xPos: number, yPos: number, texture: GRRLibTexture, degrees: number, scaleX: number, scaleY: number, color: RGBA): void
function rectangle(x: number, y: number, width: number, height: number, color: RGBA, filled: bool): void
}
2024-06-25 01:31:56 +00:00
function get_file(filename: string): FilePtr
function get_deltatime(): number
function rgba(r: number, g: number, b: number, a: number): RGBA
function compare_rgba(color1: RGBA, color2: RGBA): boolean
}