Hierarchy (view full)

Constructors

Properties

contextManager: ContextManager

The ContextManager that will be subscribed to for WebGL rendering context events.

name: string
referenceAxis: Readonly<R3>

The reference frame axis.

referenceMeridian: Readonly<R3>

The reference frame meridian.

Accessors

  • get geometry(): G
  • Provides a reference counted reference to the geometry property. Getting the geometry property will cause the

    Returns G

  • set geometry(geometry): void
  • The Geometry that provides the buffered vertex attributes for this AbstractDrawable.

    Geometry is a shareable WebGL resource and so is reference counted. Consequently, accessing the geometry property increments the Geometry instance reference count. Be sure to call release() on shareable WebGL resources in order to prevent memory leaks.

    Parameters

    • geometry: G

    Returns void

  • get material(): M
  • Provides a reference counted reference to the material property.

    Returns M

  • set material(material): void
  • The Material that provides the WebGLProgram for this AbstractDrawable.

    Material is a shareable WebGL resource and so is reference counted. Consequently, accessing the material property increments the Material instance reference count. Be sure to call release() on shareable WebGL resources in order to prevent memory leaks.

    Parameters

    • material: M

    Returns void

  • get modelMatrixUniformName(): string
  • The name of the uniform mat4 variable in the vertex shader that receives the model matrix value. The default name is uModel.

    Returns string

  • set modelMatrixUniformName(name): void
  • Parameters

    • name: string

    Returns void

  • get normalMatrixUniformName(): string
  • The name of the uniform mat3 variable in the vertex shader that receives the normal matrix value. The default name is uNormal.

    Returns string

  • set normalMatrixUniformName(name): void
  • Parameters

    • name: string

    Returns void

  • get transparent(): boolean
  • Returns boolean

    false
    
  • set transparent(transparent): void
  • Determines when this object will be drawn. Transparent objects should be rendered after non-transparent objects.

    Parameters

    • transparent: boolean

    Returns void

  • get visible(): boolean
  • Returns boolean

    true
    
  • set visible(visible): void
  • Determines whether this object will be drawn.

    Parameters

    • visible: boolean

    Returns void

Methods

  • Called to request the consumer to free any WebGL resources acquired and owned. The consumer may assume that its cached context is still valid in order to properly dispose of any cached resources. In the case of shared objects, this method may be called multiple times for what is logically the same context. In such cases the consumer must be idempotent and respond only to the first request.

    Returns void

  • Called to inform the dependent of a new WebGL rendering context. The implementation should ignore the notification if it has already received the same context.

    Returns void

  • Called to inform the dependent of a loss of WebGL rendering context. The dependent must assume that any cached context is invalid. The dependent must not try to use and cached context to free resources. The dependent should reset its state to that for which there is no context.

    Returns void

  • An object is a zombie if it has been released by all who have held references. In some cases it may be possible to recycle a zombie.

    Returns boolean

  • This method is for use within constructors.

    Immediately after a call to the super class constructor, make a call to setLoggingName. This will have the effect of refining the name used for reporting reference counts.

    This method has the secondary purpose of enabling a tally of the number of classes in the constructor chain. This enables the runtime architecture to verify that destructor chains are consistent with constructor chains, which is a good practice for cleaning up resources.

    Notice that this method is intentionally protected to discourage it from being called outside of the constructor.

    Parameters

    • name: string

      This will usually be set to the name of the class.

    Returns void