drawWrapper.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. import type { IDrawContext } from "../Engines/IDrawContext";
  2. import type { IMaterialContext } from "../Engines/IMaterialContext";
  3. import type { Nullable } from "../types";
  4. import type { AbstractEngine } from "../Engines/abstractEngine";
  5. import type { Effect } from "./effect";
  6. import type { MaterialDefines } from "./materialDefines";
  7. /** @internal */
  8. export declare class DrawWrapper {
  9. effect: Nullable<Effect>;
  10. defines: Nullable<string | MaterialDefines>;
  11. materialContext?: IMaterialContext;
  12. drawContext?: IDrawContext;
  13. /**
  14. * @internal
  15. * Specifies if the effect was previously ready
  16. */
  17. _wasPreviouslyReady: boolean;
  18. /**
  19. * @internal
  20. * Forces the code from bindForSubMesh to be fully run the next time it is called
  21. */
  22. _forceRebindOnNextCall: boolean;
  23. /**
  24. * @internal
  25. * Specifies if the effect was previously using instances
  26. */
  27. _wasPreviouslyUsingInstances: Nullable<boolean>;
  28. static GetEffect(effect: Effect | DrawWrapper): Nullable<Effect>;
  29. constructor(engine: AbstractEngine, createMaterialContext?: boolean);
  30. setEffect(effect: Nullable<Effect>, defines?: Nullable<string | MaterialDefines>, resetContext?: boolean): void;
  31. dispose(): void;
  32. }