| 1234567891011121314151617181920212223 |
- import { coordinates } from "./coordinates.js";
- class scene {
- #canvas;
- #context;
- #position;
- constructor() {
- this.#position = new coordinates();
- this.#canvas = document.createElement("canvas");
- this.#context = this.#canvas.getContext("webgl");
- if (!this.#context) {
- throw new TypeError("Browser does not support WebGL.");
- }
- }
- get position() {
- return this.#position;
- }
- }
- export { scene };
|