rapid-render
    Preparing search index...

    Class Region

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    currentShader: GLShader
    customShader: CustomGlShader | null = null
    customShaderUsedTextureNum: number = 0
    defaultShader: GLShader
    fs: string = ""
    gl: WebGL2RenderingContext
    isDefaultShader: boolean = true
    KEY: string = "default"
    matrixStore: MatrixStore
    maxTextureUnits: number
    rapid: Rapid
    usedTexturePadding: number[] = []
    usedTextures: WebGLTexture[] = []
    vs: string = ""

    Accessors

    Methods

    • Parameters

      • vs: string
      • fs: string

      Returns GLShader

    • Parameters

      • vs: string
      • fs: string

      Returns GLShader

    • Checks if the given shader is the same as the currently bound shader.

      Parameters

      • OptionalcustomShader: GLShader | CustomGlShader

        Optional custom shader.

      Returns boolean

      True if already bound, otherwise false.

    • Parameters

      • texture: WebGLTexture
      • paddingX: number = 0
      • paddingY: number = 0

      Returns number