Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeometryFactory

Provides the feature to instanciate primitive geometry.

Hierarchy

Index

Constructors

constructor

Properties

gl

gl: WebGLRenderingContext

Static factoryArgumentDeclarations

factoryArgumentDeclarations: object

Argument inputs to be used for construction of geometry.

Type declaration

  • [typeName: string]: object
    • [argName: string]: IAttributeDeclaration

Static factoryDelegates

factoryDelegates: object

Delegates to be used as factory

Type declaration

Static factoryExtentions

factoryExtentions: object

Type declaration

  • [typeName: string]: function[]

Static registryName

registryName: string = "GeometryFactory"

Methods

instanciate

  • instanciate(type: string, args: object): Promise<Geometry>

instanciateAsDefault

  • instanciateAsDefault(type: string): Promise<Geometry>

Static Protected ___get

  • ___get<T>(gl: WebGLRenderingContext, ctor: object): T

Static Protected ___getAll

  • ___getAll<T>(ctor: object): T[]

Static addType

Static extend

  • extend(typeName: string, extender: function): void
  • Parameters

    • typeName: string
    • extender: function
        • (geometry: Geometry, attrs: object): Promise<void> | void
        • Parameters

          • geometry: Geometry
          • attrs: object
            • [attrKey: string]: any

          Returns Promise<void> | void

    Returns void

Static get

Generated using TypeDoc