猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
371 B

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