Options
All
  • Public
  • Public/Protected
  • All
Menu

Custom Model Loader with preview.

Hierarchy

  • Importer

Index

Constructors

constructor

  • Parameters

    Returns Importer

Properties

Private animationHandle

animationHandle: number

The handle of the Drawloop of the preview.

Private count

count: number

Number of models placed into the scene.

Private data

The loaded data.

Private gl

gl: WebGL2RenderingContext

Private model

model: IGeometry

Holds the preview model.

Private previewGl

previewGl: WebGL2RenderingContext

Context of the preview canvas.

Private sg

Private shader

shader: Shader

Holds the shader for the preview.

Methods

Private drawPreview

  • drawPreview(time: number): void
  • Drawmethod for the preview.

    Parameters

    • time: number

      Time since the animationstart.

    Returns void

Private upload

  • upload(event: Event): void
  • Handle the loading and starting of the preview.

    Parameters

    • event: Event

      Inputevent on filechange.

    Returns void

Generated using TypeDoc