Class WidthLine

Base 基类方便继承以实现其他类型的情况

Hierarchy (view full)

Constructors

Properties

bufferType: string
buffers: Record<string, WebGLBuffer> = {}
buffersSize: Record<string, number> = {}
childId: number
config: BaseMeshConfig
count: number
data: PointData[] = []
depthMask: boolean = true
depthTest: boolean = true
drawType: string = 'TRIANGLES'
gl: WebGL2RenderingContext
indices: number[] = []
indicesPointer: WebGLBuffer
matrix: mat3
miniGL: MiniGL
offset: number = 0
parent: Group
res: {
    nextData: number[];
    nowData: number[];
    preData: number[];
    side: number[];
}

Type declaration

  • nextData: number[]
  • nowData: number[]
  • preData: number[]
  • side: number[]
shaderProgram: WebGLProgram
shaders: {
    fragment: string;
    vertex: string;
}

Type declaration

  • fragment: string
  • vertex: string
texture: WebGLTexture
transparent: boolean = true
uniformData: Record<string, {
    texture?: WebGLTexture;
    type: string;
    value: number | number[] | Float32Array;
}> = ...

Type declaration

  • Optional texture?: WebGLTexture
  • type: string
  • value: number | number[] | Float32Array
uniformLocations: {} = {}

Type declaration

    uniformsNeedUpdate: boolean = true
    vSize: number = 2
    vertex: any[] = []
    visible: boolean = true
    worldMatrix: mat3
    zOrder: number

    Methods

    • Parameters

      • data: number[] = []

      Returns {
          nextData: number[];
          nowData: number[];
          preData: number[];
          side: number[];
      }

      • nextData: number[]
      • nowData: number[]
      • preData: number[]
      • side: number[]

    Generated using TypeDoc