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.

source.ts 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * encantar.js
  3. * GPU-accelerated Augmented Reality for the web
  4. * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Lesser General Public License as published
  8. * by the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. *
  19. * source.ts
  20. * Abstract source of data
  21. */
  22. import { SpeedyPromise } from 'speedy-vision/types/core/speedy-promise';
  23. /**
  24. * Abstract source of data
  25. */
  26. export interface Source
  27. {
  28. /** @internal type-identifier of the source of data */
  29. readonly _type: string;
  30. /** @internal method to initialize the source of data (gets the data ready) */
  31. _init(): SpeedyPromise<void>;
  32. /** @internal method to release the source of data */
  33. _release(): SpeedyPromise<void>;
  34. /** @internal stats related to this source of data */
  35. readonly _stats: string;
  36. }