PIXI.SimpleMesh
class SimpleMesh extends PIXI.Mesh
The Simple Mesh class mimics Mesh in PixiJS v4, providing easy-to-use constructor arguments. For more robust customization, use PIXI.Mesh.
Constructor
new PIXI.SimpleMesh(texture: PIXI.Texture, vertices: Float32Array, uvs: Float32Array, indices: Uint16Array, drawMode: PIXI.DRAW_MODES) → {}
Name | Type | Attributes | Description |
---|---|---|---|
texture | PIXI.Texture |
The texture to use |
|
vertices | Float32Array |
<optional> |
if you want to specify the vertices |
uvs | Float32Array |
<optional> |
if you want to specify the uvs |
indices | Uint16Array |
<optional> |
if you want to specify the indices |
drawMode | PIXI.DRAW_MODES |
<optional> |
the drawMode, can be any of the Mesh.DRAW_MODES consts |
Summary
Properties from SimpleMesh
boolean |
Upload vertices buffer each frame. |
number |
|
Float32Array |
|
Properties inherited from Mesh
PIXI.BLEND_MODES |
|
PIXI.DRAW_MODES |
The way the Mesh should be drawn, can be any of the PIXI.DRAW_MODES constants. |
PIXI.Geometry |
|
T |
Alias for PIXI.Mesh#shader. |
boolean |
|
PIXI.Shader | PIXI.MeshMaterial |
|
number |
|
number |
|
PIXI.State |
|
PIXI.Texture |
The texture that the Mesh uses. Null for non-MeshMaterial shaders |
number |
|
PIXI.Buffer |
|
PIXI.Buffer |
|
PIXI.Texture |
|
number |
|
HTMLCanvasElement |
|
Properties inherited from Container
T[] |
|
number |
The height of the Container, setting this will actually modify the scale to achieve the value set. |
boolean |
|
boolean |
|
boolean |
Should children be sorted by zIndex at the next updateTransform call. |
number |
The width of the Container, setting this will actually modify the scale to achieve the value set. |
Properties inherited from DisplayObject
Methods inherited from Mesh
void |
Updates uv field based on from geometry uv's or batchUvs. |
void |
Updates vertexData field based on transform and vertices. |
boolean |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from Container
Methods inherited from DisplayObject
Inherited Events from Container
Inherited Events from DisplayObject
|
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
Fired when the mouse pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
Capture phase equivalent of |
|
Fired when the mouse pointer exits a DisplayObject and its descendants. |
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
Fired when the pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
Capture phase equivalent of |
|
Fired when the pointer leaves the hit testing boundaries of a DisplayObject and its descendants. |
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
PIXI.FederatedWheelEvent |
Fired when a the user scrolls with the mouse cursor over a DisplayObject. |
PIXI.FederatedWheelEvent |
Capture phase equivalent of |
Public Properties
canvasPadding: number = 0
Triangles in canvas mode are automatically antialiased, use this value to force triangles to overlap a bit with each other. To set the global default, set PIXI.settings.MESH_CANVAS_PADDING