wtc-gl
    Preparing search index...

    Class GeometryAttribute

    Class representing a geometry attribute. A discrete piece of data used to render some geometry.

    Implements

    Index

    Constructors

    Properties

    buffer: WebGLBuffer

    The WebGL buffer containing the static attribute data

    count: number

    the number of elements in the attribute

    data:
        | Float32Array<ArrayBufferLike>
        | Float64Array<ArrayBufferLike>
        | Uint16Array<ArrayBufferLike>
        | Uint32Array<ArrayBufferLike>

    A typed array of data for the attribute

    divisor: number = 0

    The divisor, used in instanced attributes

    instanced: number

    The number of instances for this attribute

    needsUpdate: boolean = false

    whether this attribute needs an update. Set after the attribute changes to have it recast to memory

    normalized: boolean

    whether integer data values should be normalized into a certain range when being cast to a float.

    offset: number = 0

    How many bytes to offset when passing in the buffer

    size: number = 1

    The size of each element in the attribute. For example if you're describing 3D vectors, this would be 3.

    stride: number = 0

    How big a stride should this attribute have. Should be 0 for all attributes that are uncombined.

    target: number

    gl.ELEMENT_ARRAY_BUFFER or gl.ARRAY_BUFFER depending on whether this is an index attribute or not

    type: number

    default gl.UNSIGNED_SHORT for 'index', gl.FLOAT for others

    Methods