2024-06-25 01:31:56 +00:00
|
|
|
declare interface RGBA {
|
|
|
|
__brand: "RGBA"
|
|
|
|
}
|
|
|
|
declare interface FilePtr {
|
|
|
|
__brand: "FilePtr"
|
|
|
|
}
|
|
|
|
declare interface GRRLibTexture {
|
|
|
|
__brand: "GRRLibTexture"
|
|
|
|
}
|
2024-06-21 07:45:28 +00:00
|
|
|
|
|
|
|
declare namespace wii {
|
2024-06-25 01:31:56 +00:00
|
|
|
function print(message: string): void
|
2024-06-21 07:45:28 +00:00
|
|
|
function exit(): void
|
2024-06-25 01:31:56 +00:00
|
|
|
namespace pad {
|
|
|
|
function buttons_down(): number
|
|
|
|
}
|
2024-06-21 07:45:28 +00:00
|
|
|
namespace grrlib {
|
2024-06-25 01:31:56 +00:00
|
|
|
function load_texture(file: FilePtr): GRRLibTexture
|
2024-06-21 07:45:28 +00:00
|
|
|
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-21 07:45:28 +00:00
|
|
|
}
|
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
|
2024-06-21 07:45:28 +00:00
|
|
|
}
|
|
|
|
|