Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GLTFPrimitive

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _bindings

_bindings: Array<VertexBinding>

Protected _buffers

_buffers: Buffer[] = new Array<Buffer>()

Various buffers required for this geometry (e.g., vertex buffer).

Protected _drawMode

_drawMode: GLenum

Protected _geometryFlags

_geometryFlags: number

Protected _indexBinding

_indexBinding: IndexBinding | undefined

Protected _material

_material: Material

Protected _vertexArray

_vertexArray: VertexArray

Vertex array used for binding the rectangle's buffer(s).

Accessors

buffers

  • get buffers(): Array<Buffer>

context

flags

  • get flags(): number

initialized

  • get initialized(): boolean

material

vertexArray

Methods

Protected assertInitialized

  • assertInitialized(): void
  • Asserts the objects initialization status to be true. Note that the implementation is cached and forwarded to either an empty function when initialized and to an acutal assert(false) otherwise.

    Returns void

Protected assertUninitialized

  • assertUninitialized(): undefined
  • Asserts the objects initialization status to be false. Note that the implementation is cached and forwarded to either an empty function when uninitialized and to an acutal assert(false) otherwise.

    Returns undefined

bind

  • bind(): void

Protected bindBuffers

  • bindBuffers(): void

draw

  • draw(): void

initialize

  • initialize(...args: any[]): boolean
  • Initializes all buffer objects and the vertex array. Please note that implicit arguments are used in order to enable custom initialization signatures for inheritors.

    Parameters

    • Rest ...args: any[]

    Returns boolean

unbind

  • unbind(): void

Protected unbindBuffers

  • unbindBuffers(): void

uninitialize

  • uninitialize(): void

Static Protected Readonly assertInitializedFalse

Static Protected Readonly assertUninitializedFalse

Static assert_initialized

Static assert_uninitialized

Static discard

  • Method decorator for discarding of Initializable inheritors. This decorator asserts the initialization status of the instance that is to be discarded, invokes its uninitialization, and falsifies the initialization status. In order to encourage the use of assertInitialized and assertUninitialized they are dynamically bound to a static, always-failing assert and an empty/undefined function respectively.

    Returns MethodDecorator

Static initialize

  • Method decorator for initialization of Initializable inheritors. This decorator asserts the initialization status of the instance that is to be initialized, invokes its initialization with arbitrary number of parameters, and sets the initialization status to the initialization success (either false or true). In order to encourage the use of assertInitialized and assertUninitialized they are dynamically bound to either a static, always-failing assert or an empty/undefined function.

    Returns MethodDecorator

Static uninitialize

  • Method decorator for uninitialization of Initializable inheritors. This decorator asserts the initialization status of the instance that is to be uninitialized, invokes its uninitialization, and falsifies the initialization status. In order to encourage the use of assertInitialized and assertUninitialized they are dynamically bound to a static, always-failing assert and an empty/undefined function respectively.

    Returns MethodDecorator