PIXI.QuadUv

class QuadUv extends PIXI.Geometry

Helper class to create a quad with uvs like in v4

Summary


Properties from QuadUv

Float32Array
uvs

The Uvs of the quad.

Float32Array
vertices

An array of vertices.

Methods from QuadUv

Properties inherited from Geometry

object
glVertexArrayObjects
number
instanceCount = 1
boolean
instanced

Whether the geometry is instanced.

number
refCount

Count of existing (not destroyed) meshes that reference this geometry.

Methods inherited from Geometry

this
addAttribute(id: string, buffer: PIXI.Buffer | number<Array>, size: number, normalized: boolean, type: PIXI.TYPES, stride: number, start: number, instance: boolean)
PIXI.Geometry
addIndex(buffer: PIXI.Buffer | number<Array>)
PIXI.Geometry
clone()
void
destroy()

Destroys the geometry.

void
dispose()

Disposes WebGL resources that are connected to this geometry.

PIXI.Attribute
getAttribute(id: string)
PIXI.Buffer
getBuffer(id: string)
PIXI.Buffer
getIndex()
number
getSize()

Get the size of the geometries, in vertices.

PIXI.Geometry
interleave()

Public Properties


uvs QuadUv.ts:18
uvs: Float32Array

The Uvs of the quad.

vertices QuadUv.ts:15
vertices: Float32Array

An array of vertices.

Public Methods


invalidate QuadUv.ts:90
invalidate() → {this}

Legacy upload method, just marks buffers dirty.

Returns:
Type Description
this
  • Returns itself.
map QuadUv.ts:47
map(targetTextureFrame: PIXI.Rectangle, destinationFrame: PIXI.Rectangle) → {this}

Maps two Rectangle to the quad.

Parameters:
Name Type Description
targetTextureFrame PIXI.Rectangle

The first rectangle

destinationFrame PIXI.Rectangle

The second rectangle

Returns:
Type Description
this
  • Returns itself.

Powered by webdoc!