UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

16 lines 472 B
import { voBuffer, voIndex, voInitialize } from './constants.js'; export const createVertexObject = (descriptor, buffer, objectIndex) => { const vo = Object.create(descriptor.voPrototype, { [voBuffer]: { value: buffer, writable: true, }, [voIndex]: { value: objectIndex, writable: true, }, }); vo[voInitialize]?.(); return vo; }; //# sourceMappingURL=createVertexObject.js.map