WiiDuktape/types.d.ts

29 lines
920 B
TypeScript
Raw Normal View History

declare interface RGBA {}
declare interface FilePtr {}
declare interface GRRLibTexture {}
declare interface DrawableObject {
texture: GRRLibTexture
};
declare interface Pipe {
top_y: number
bottom_y: number
position: number
time_active: number
};
declare namespace wii {
function exit(): void
function get_file(filename: string) : FilePtr
function get_deltatime() : number
function compare_rgba(color1: RGBA, color2: RGBA) : boolean
function print(message: string) : void
function rgba(r: number, g: number, b: number, a: number): RGBA
namespace grrlib {
function load_texture(file: FilePtr) : GRRLibTexture
function fill_screen(color: RGBA): void
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
}
}