UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

8 lines 416 B
import store from "@lincode/reactivity"; import { HEIGHT, WIDTH } from "../globals"; import { resolutionPtr } from "../pointers/resolutionPtr"; const [_setResolution, getResolution] = store([WIDTH, HEIGHT]); export { getResolution }; getResolution((val) => (resolutionPtr[0] = val)); export const setResolution = ([w, h]) => _setResolution([Math.max(w, 1), Math.max(h, 1)]); //# sourceMappingURL=useResolution.js.map