1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00

removed experimental WebGL canvas code

This commit is contained in:
boxgaming 2023-04-26 17:13:15 -05:00
parent d5c0cf9f13
commit 6a55cfc09b

View file

@ -102,13 +102,13 @@ var GX = new function() {
if (!_canvas) {
_canvas = document.createElement("canvas");
_canvas.id = "gx-canvas";
_canvas.style.position = "absolute";
//_canvas.style.position = "absolute";
document.getElementById("gx-container").appendChild(_canvas);
_glcanvas = document.createElement("canvas");
_glcanvas.id = "gl-canvas";
//_glcanvas.style.position = "absolute";
document.getElementById("gx-container").appendChild(_glcanvas);
//_glcanvas = document.createElement("canvas");
//_glcanvas.id = "gl-canvas";
////_glcanvas.style.position = "absolute";
//document.getElementById("gx-container").appendChild(_glcanvas);
_canvas.addEventListener("mousemove", function(event) {
_mousePos.x = event.offsetX;
@ -211,10 +211,10 @@ var GX = new function() {
_canvas.height = height;
_ctx = _canvas.getContext("2d");
_glcanvas.width = width;
_glcanvas.height = height;
_glctx = _glcanvas.getContext("webgl");
//__GL.init(_glctx);
//_glcanvas.width = width;
//_glcanvas.height = height;
//_glctx = _glcanvas.getContext("webgl");
////__GL.init(_glctx);
var footer = document.getElementById("gx-footer");
footer.style.width = width;