"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var sdl_window_1 = require("./sdl-window/sdl-window");
var application_context_1 = require("./app/application-context");
var sdl_canvas_1 = require("./canvas/sdl-canvas");
function createWindow(options) {
    var opts = options || sdl_window_1.SdlWindow.windowDefaults();
    var sdlWindow = new sdl_window_1.SdlWindow(opts);
    sdlWindow.canvas = new sdl_canvas_1.SdlCanvas(sdlWindow);
    return sdlWindow;
}
exports.createWindow = createWindow;
function alert(message) {
    sdl_window_1.SdlWindow.alert(message);
}
exports.alert = alert;
function confirm(message) {
    return sdl_window_1.SdlWindow.confirm(message);
}
exports.confirm = confirm;
function requestAnimationFrame(callback) {
    return application_context_1.applicationContext.requestAnimationFrame(callback);
}
exports.requestAnimationFrame = requestAnimationFrame;
function cancelAnimationFrame(request) {
    application_context_1.applicationContext.cancelAnimationFrame(request);
}
exports.cancelAnimationFrame = cancelAnimationFrame;
//# sourceMappingURL=index.js.map