PIXI.SimplePlane
class SimplePlane extends PIXI.Mesh
The SimplePlane allows you to draw a texture across several points and then manipulate these points
for (let i = 0; i < 20; i++) {
points.push(new PIXI.Point(i * 50, 0));
};
let SimplePlane = new PIXI.SimplePlane(PIXI.Texture.from("snake.png"), points);
Constructor
new PIXI.SimplePlane(texture: PIXI.Texture, verticesX: number, verticesY: number) → {}
Name | Type | Attributes | Description |
---|---|---|---|
texture | PIXI.Texture |
The texture to use on the SimplePlane. |
|
verticesX | number |
<optional> |
The number of vertices in the x-axis |
verticesY | number |
<optional> |
The number of vertices in the y-axis |
Summary
Properties from SimplePlane
boolean |
The geometry is automatically updated when the texture size changes. |
Methods from SimplePlane
void |
|
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
autoResize: boolean
The geometry is automatically updated when the texture size changes.
Public Methods
textureUpdated() → {void}
Method used for overrides, to do something in case texture frame was changed. Meshes based on plane can override it and change more details based on texture.
Type | Description |
---|---|
void |