"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "0.2.4";
var webgl_1 = require("./webgl/webgl");
exports.WebGLPlatform = webgl_1.WebGLPlatform;
var platforms_1 = require("./webgl/platforms");
exports.WebGLCanvasPlatform2D = platforms_1.WebGLCanvasPlatform2D;
exports.WebGLCanvasPlatform3D = platforms_1.WebGLCanvasPlatform3D;
exports.WebGLCanvasPlatformWebVR = platforms_1.WebGLCanvasPlatformWebVR;
var stardust_core_1 = require("stardust-core");
var webgl_2 = require("./webgl/webgl");
var platforms_2 = require("./webgl/platforms");
stardust_core_1.Platform.Register("webgl", function (gl) {
    return new webgl_2.WebGLPlatform(gl);
});
stardust_core_1.Platform.Register("webgl-2d", function (canvas, width, height) {
    if (width === void 0) { width = 600; }
    if (height === void 0) { height = 400; }
    return new platforms_2.WebGLCanvasPlatform2D(canvas, width, height);
});
stardust_core_1.Platform.Register("webgl-3d", function (canvas, width, height) {
    if (width === void 0) { width = 600; }
    if (height === void 0) { height = 400; }
    return new platforms_2.WebGLCanvasPlatform3D(canvas, width, height);
});
stardust_core_1.Platform.Register("webgl-webvr", function (canvas, width, height) {
    if (width === void 0) { width = 600; }
    if (height === void 0) { height = 400; }
    return new platforms_2.WebGLCanvasPlatformWebVR(canvas, width, height);
});
//# sourceMappingURL=stardust-webgl.js.map