Buffer.js 337 B

123456789101112131415161718192021
  1. import {getTransferedObjectUUID} from './classUtils';
  2. const name = 'WebGLBuffer';
  3. function uuid(id) {
  4. return getTransferedObjectUUID(name, id);
  5. }
  6. export default class WebGLBuffer {
  7. className = name;
  8. constructor(id) {
  9. this.id = id;
  10. }
  11. static uuid = uuid;
  12. uuid() {
  13. return uuid(this.id);
  14. }
  15. }