Creates a new camera using the specified renderer. By default the camera
looks towards negative z and is positioned at z = 5.
Parameters
renderer: Renderer
@@ -66,13 +66,13 @@
Also be aware of that this may not work nicely with the addChildAt() function,
as the zIndex sorting may cause the child to automatically sorted to another position.
get mask(): null | Container<DisplayObject> | MaskData
set mask(value: null | Container<DisplayObject> | MaskData): void
Sets a mask for the displayObject. A mask is an object that limits the visibility of an
object to the shape of the mask applied to it. In PixiJS a regular mask must be a
{@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it
@@ -131,26 +131,26 @@
const sprite = new PIXI.Sprite(texture);
sprite.mask = graphics;
todo
At the moment, PIXI.CanvasRenderer doesn't support PIXI.Sprite as mask.
-
Parameters
value: null | Container<DisplayObject> | MaskData
Returns void
near
get near(): number
set near(value: number): void
+
Parameters
value: null | Container<DisplayObject> | MaskData
Returns void
near
get near(): number
set near(value: number): void
The near clipping plane distance, 0.1 is the default value.
-
Returns number
+
Returns number
The near clipping plane distance, 0.1 is the default value.
-
Parameters
value: number
Returns void
obliqueness
get obliqueness(): IPointData
set obliqueness(value: IPointData): void
+
Parameters
value: number
Returns void
obliqueness
get obliqueness(): IPointData
set obliqueness(value: IPointData): void
Used for making the frustum oblique, which means that one side is at a
smaller angle to the centre line than the opposite side. Only works with
perspective projection.
-
Returns IPointData
+
Returns IPointData
Used for making the frustum oblique, which means that one side is at a
smaller angle to the centre line than the opposite side. Only works with
perspective projection.
-
Parameters
value: IPointData
Returns void
orthographic
get orthographic(): boolean
set orthographic(value: boolean): void
+
Parameters
value: IPointData
Returns void
orthographic
get orthographic(): boolean
set orthographic(value: boolean): void
Camera will render objects uniformly, with no sense of perspective.
-
Returns boolean
+
Returns boolean
Camera will render objects uniformly, with no sense of perspective.
-
Parameters
value: boolean
Returns void
orthographicSize
get orthographicSize(): number
set orthographicSize(value: number): void
+
Parameters
value: boolean
Returns void
orthographicSize
get orthographicSize(): number
set orthographicSize(value: number): void
The camera's half-size when in orthographic mode. The visible area from
center of the screen to the top.
-
Returns number
+
Returns number
The camera's half-size when in orthographic mode. The visible area from
center of the screen to the top.
Parameters
value: number
Returns void
pivot
get pivot(): ObservablePoint<any>
set pivot(value: IPointData): void
@@ -163,7 +163,7 @@
is the projection of pivot in the parent's local space.
The position of the displayObject on the x axis relative to the local coordinates of the parent.
@@ -201,10 +201,10 @@
Returns number
The position of the displayObject on the y axis relative to the local coordinates of the parent.
An alias to position.y
-
Parameters
value: number
Returns void
z
get z(): number
set z(value: number): void
+
Parameters
value: number
Returns void
z
get z(): number
set z(value: number): void
The position of the object on the z axis relative to the local
coordinates of the parent.
-
Returns number
+
Returns number
The position of the object on the z axis relative to the local
coordinates of the parent.
Parameters
value: number
Returns void
zIndex
get zIndex(): number
set zIndex(value: number): void
@@ -251,7 +251,7 @@
Recalculates the bounds of the container.
This implementation will automatically fit the children's bounds into the calculation. Each child's bounds
is limited to its mask's bounds or filterArea, if any is applied.
The bounds object, this is used to calculate and store the bounds of the displayObject.
@@ -61,7 +61,7 @@
Also be aware of that this may not work nicely with the addChildAt() function,
as the zIndex sorting may cause the child to automatically sorted to another position.
get mask(): null | Container<DisplayObject> | MaskData
set mask(value: null | Container<DisplayObject> | MaskData): void
Sets a mask for the displayObject. A mask is an object that limits the visibility of an
object to the shape of the mask applied to it. In PixiJS a regular mask must be a
{@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it
@@ -120,15 +120,15 @@
is the projection of pivot in the parent's local space.
Collection of components used for image-based lighting (IBL), a
rendering technique which involves capturing an omnidirectional representation
of real-world light information as an image.
The bounds object, this is used to calculate and store the bounds of the displayObject.
Protected _boundsID
_boundsID:number
Flags the cached bounds as dirty.
@@ -59,7 +59,7 @@
Also be aware of that this may not work nicely with the addChildAt() function,
as the zIndex sorting may cause the child to automatically sorted to another position.
get mask(): null | Container<DisplayObject> | MaskData
set mask(value: null | Container<DisplayObject> | MaskData): void
Sets a mask for the displayObject. A mask is an object that limits the visibility of an
object to the shape of the mask applied to it. In PixiJS a regular mask must be a
{@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it
@@ -118,15 +118,15 @@
is the projection of pivot in the parent's local space.
The position of the displayObject on the x axis relative to the local coordinates of the parent.
@@ -150,10 +150,10 @@
Returns number
The position of the displayObject on the y axis relative to the local coordinates of the parent.
An alias to position.y
-
Parameters
value: number
Returns void
z
get z(): number
set z(value: number): void
+
Parameters
value: number
Returns void
z
get z(): number
set z(value: number): void
The position of the object on the z axis relative to the local
coordinates of the parent.
-
Returns number
+
Returns number
The position of the object on the z axis relative to the local
coordinates of the parent.
Parameters
value: number
Returns void
zIndex
get zIndex(): number
set zIndex(value: number): void
@@ -200,7 +200,7 @@
Recalculates the bounds of the container.
This implementation will automatically fit the children's bounds into the calculation. Each child's bounds
is limited to its mask's bounds or filterArea, if any is applied.
Can this object be rendered, if false the object will not be drawn but the updateTransform
@@ -67,7 +67,7 @@
Also be aware of that this may not work nicely with the addChildAt() function,
as the zIndex sorting may cause the child to automatically sorted to another position.
get mask(): null | Container<DisplayObject> | MaskData
set mask(value: null | Container<DisplayObject> | MaskData): void
Sets a mask for the displayObject. A mask is an object that limits the visibility of an
object to the shape of the mask applied to it. In PixiJS a regular mask must be a
{@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it
@@ -126,15 +126,15 @@
is the projection of pivot in the parent's local space.
Also be aware of that this may not work nicely with the addChildAt() function,
as the zIndex sorting may cause the child to automatically sorted to another position.
get mask(): null | Container<DisplayObject> | MaskData
set mask(value: null | Container<DisplayObject> | MaskData): void
Sets a mask for the displayObject. A mask is an object that limits the visibility of an
object to the shape of the mask applied to it. In PixiJS a regular mask must be a
{@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it
@@ -124,15 +124,15 @@
is the projection of pivot in the parent's local space.
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class AABB
Axis-aligned bounding box.
-Hierarchy
Index
Constructors
Accessors
Methods
Constructors
constructor
Returns AABB
Accessors
center
Hierarchy
Index
Constructors
Accessors
Methods
Constructors
constructor
Returns AABB
Accessors
center
The center of the bounding box.
-Returns ObservablePoint3D
extents
Returns ObservablePoint3D
extents
The extents of the bounding box.
-Returns ObservablePoint3D
max
Returns ObservablePoint3D
max
The maximal point of the bounding box.
-Returns ObservablePoint3D
Returns ObservablePoint3D
The maximal point of the bounding box.
-Parameters
value: ObservablePoint3D
Returns void
min
Parameters
value: ObservablePoint3D
Returns void
min
The minimal point of the bounding box.
-Returns ObservablePoint3D
Returns ObservablePoint3D
The minimal point of the bounding box.
-Parameters
value: ObservablePoint3D
Returns void
size
Parameters
value: ObservablePoint3D
Returns void
size
The size of the bounding box.
-Returns ObservablePoint3D
Methods
encapsulate
Returns ObservablePoint3D
Methods
encapsulate
Grows the bounding box to include the point.
Parameters
point: { x: number; y: number; z: number }
The point to include.
-x: number
y: number
z: number
Returns void
Static from
x: number
y: number
z: number
Returns void
Static from
Creates a new bounding box from the specified source.
Parameters
source: { max: Float32Array; min: Float32Array }
The source to create the bounding box from.
diff --git a/docs/classes/Animation.html b/docs/classes/Animation.html index fe3bb38e..7098e0d9 100644 --- a/docs/classes/Animation.html +++ b/docs/classes/Animation.html @@ -1,16 +1,16 @@ -- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class Animation
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class Animation
Represents an animation.
-Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
Creates a new animation with the specified name.
Parameters
Optional name: string
Name for the animation.
-Returns Animation
Properties
Readonly Abstract duration
Returns Animation
Properties
Readonly Abstract duration
The duration (in seconds) of this animation.
-loop
loop
A value indicating if the animation is looping.
-Optional name
Abstract position
Optional name
Abstract position
The current position (in seconds) of this animation.
-speed
speed
The speed that the animation will play at.
Static prefixed
Methods
add Listener
Parameters
event: string | symbol
fn: ListenerFn
Optional context: any
Returns Animation
emit
Calls each of the listeners registered for a given event.
@@ -25,7 +25,7 @@Add a listener for a given event.
Parameters
event: string | symbol
fn: ListenerFn
Optional context: any
Returns Animation
once
Add a one-time listener for a given event.
-Parameters
event: string | symbol
fn: ListenerFn
Optional context: any
Returns Animation
play
Parameters
event: string | symbol
fn: ListenerFn
Optional context: any
Returns Animation
play
Starts playing the animation using the specified ticker.
Parameters
ticker: Ticker = Ticker.shared
The ticker to use for updating the animation. If a ticker @@ -34,9 +34,9 @@
Remove all listeners, or those of the specified event.
Parameters
Optional event: string | symbol
Returns Animation
remove Listener
Remove the listeners of a given event.
-Parameters
event: string | symbol
Optional fn: ListenerFn
Optional context: any
Optional once: boolean
Returns Animation
stop
Parameters
event: string | symbol
Optional fn: ListenerFn
Optional context: any
Optional once: boolean
Returns Animation
stop
Stops playing the animation.
-Returns void
update
Returns void
update
Updates the animation by the specified delta time.
Parameters
delta: number
The time in seconds since last frame.
diff --git a/docs/classes/Camera.html b/docs/classes/Camera.html index fc73f72f..f062eb3d 100644 --- a/docs/classes/Camera.html +++ b/docs/classes/Camera.html @@ -1,6 +1,6 @@ -- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class Camera
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class Camera
Camera is a device from which the world is viewed.
-Hierarchy
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Hierarchy
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new camera using the specified renderer. By default the camera looks towards negative z and is positioned at z = 5.
Parameters
renderer: Renderer
Also be aware of that this may not work nicely with the addChildAt() function, as the zIndex sorting may cause the child to automatically sorted to another position.
PIXI.settings.SORTABLE_CHILDREN
-tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
The visibility of the object. If false the object will not be drawn, and the updateTransform function will not be called.
Only affects recursive calls from parent. You can ask for bounds or call updateTransform manually.
world Alpha
The multiplied alpha of the displayObject.
-Static main
Static main
Main camera which is used by default.
Static prefixed
Accessors
Protected _temp Display Object Parent
{PIXI.Container}
Returns TemporaryDisplayObject
angle
Returns number
The angle of the object in degrees. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
-Parameters
value: number
Returns void
aspect
Parameters
value: number
Returns void
aspect
The aspect ratio (width divided by height). If not set, the aspect ratio of the renderer will be used by default.
-Returns undefined | number
Returns undefined | number
The aspect ratio (width divided by height). If not set, the aspect ratio of the renderer will be used by default.
Parameters
value: undefined | number
Returns void
destroyed
Readonly flag for destroyed display objects.
-Returns boolean
far
Returns boolean
far
The far clipping plane distance, 1000 is the default value.
-Returns number
Returns number
The far clipping plane distance, 1000 is the default value.
-Parameters
value: number
Returns void
field Of View
Parameters
value: number
Returns void
field Of View
The vertical field of view in degrees, 60 is the default value.
-Returns number
Returns number
The vertical field of view in degrees, 60 is the default value.
Parameters
value: number
Returns void
height
The height of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The height of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. In PixiJS a regular mask must be a {@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it @@ -131,26 +131,26 @@
const sprite = new PIXI.Sprite(texture); sprite.mask = graphics;
At the moment, PIXI.CanvasRenderer doesn't support PIXI.Sprite as mask.
-Parameters
value: null | Container<DisplayObject> | MaskData
Returns void
near
Parameters
value: null | Container<DisplayObject> | MaskData
Returns void
near
The near clipping plane distance, 0.1 is the default value.
-Returns number
Returns number
The near clipping plane distance, 0.1 is the default value.
-Parameters
value: number
Returns void
obliqueness
Parameters
value: number
Returns void
obliqueness
Used for making the frustum oblique, which means that one side is at a smaller angle to the centre line than the opposite side. Only works with perspective projection.
-Returns IPointData
Returns IPointData
Used for making the frustum oblique, which means that one side is at a smaller angle to the centre line than the opposite side. Only works with perspective projection.
-Parameters
value: IPointData
Returns void
orthographic
Parameters
value: IPointData
Returns void
orthographic
Camera will render objects uniformly, with no sense of perspective.
-Returns boolean
Returns boolean
Camera will render objects uniformly, with no sense of perspective.
-Parameters
value: boolean
Returns void
orthographic Size
Parameters
value: boolean
Returns void
orthographic Size
The camera's half-size when in orthographic mode. The visible area from center of the screen to the top.
-Returns number
Returns number
The camera's half-size when in orthographic mode. The visible area from center of the screen to the top.
Parameters
value: number
Returns void
pivot
pivot
in the parent's local space.By default, the pivot is the origin (0, 0).
4.0.0
-Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
projection
Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
projection
Returns the projection matrix.
Returns Float32Array
rotation
The rotation of the object in radians. @@ -171,23 +171,23 @@
Returns number
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
-Parameters
value: number
Returns void
rotation Quaternion
Parameters
value: number
Returns void
rotation Quaternion
The quaternion rotation of the object.
-Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
The skew factor for the object in radians.
4.0.0
Returns ObservablePoint<any>
The skew factor for the object in radians.
4.0.0
-Parameters
value: IPointData
Returns void
transform Id
Returns number
view
Parameters
value: IPointData
Returns void
transform Id
Returns number
view
Returns the view matrix.
-Returns Float32Array
view Projection
Returns Float32Array
view Projection
Returns the view projection matrix.
Returns Float32Array
width
The width of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The width of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Indicates if the object is globally visible.
Returns boolean
x
The position of the displayObject on the x axis relative to the local coordinates of the parent. @@ -201,10 +201,10 @@
Returns number
The position of the displayObject on the y axis relative to the local coordinates of the parent. An alias to position.y
-Parameters
value: number
Returns void
z
Parameters
value: number
Returns void
z
The position of the object on the z axis relative to the local coordinates of the parent.
-Returns number
Returns number
The position of the object on the z axis relative to the local coordinates of the parent.
Parameters
value: number
Returns void
z Index
Recalculates the bounds of the container.
This implementation will automatically fit the children's bounds into the calculation. Each child's bounds is limited to its mask's bounds or filterArea, if any is applied.
-Returns void
destroy
Returns void
destroy
Removes all internal references and listeners as well as removes children from the display list. Do not use a Container after calling
destroy
.Parameters
Optional options: boolean | IDestroyOptions
Returns void
disable Temp Parent
Render the object using the WebGL renderer and advanced features.
Parameters
renderer: Renderer
The renderer
-Returns void
screen To Ray
Returns void
screen To Ray
Converts screen coordinates to a ray.
Parameters
x: number
Screen x coordinate.
@@ -392,7 +392,7 @@Screen y coordinate.
viewSize: { height: number; width: number } = ...
The size of the view when not rendering to the entire screen.
-height: number
width: number
Returns undefined | Ray
screen To World
height: number
width: number
Returns undefined | Ray
screen To World
Converts screen coordinates to world coordinates.
Parameters
x: number
Screen x coordinate.
@@ -476,7 +476,7 @@update Transform
Updates the transform on all children of this container for rendering.
-Returns void
world To Screen
Returns void
world To Screen
Converts world coordinates to screen coordinates.
Parameters
x: number
World x coordinate.
diff --git a/docs/classes/CameraOrbitControl.html b/docs/classes/CameraOrbitControl.html index 84da9881..552fafeb 100644 --- a/docs/classes/CameraOrbitControl.html +++ b/docs/classes/CameraOrbitControl.html @@ -1,23 +1,23 @@ -- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class CameraOrbitControl
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class CameraOrbitControl
Allows the user to control the camera by orbiting the target.
-Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new camera orbit control.
Parameters
element: HTMLElement
The element for listening to user events.
camera: Camera = Camera.main
The camera to control. If not set, the main camera will be used by default.
-Returns CameraOrbitControl
Properties
allow Control
Returns CameraOrbitControl
Properties
allow Control
Allows the camera to be controlled by user.
-camera
target
camera
target
Target position (x, y, z) to orbit.
-Type declaration
x: number
y: number
z: number
Accessors
angles
Type declaration
x: number
y: number
z: number
Accessors
angles
Orientation euler angles (x-axis and y-axis). The angle for the x-axis will be clamped between -85 and 85 degrees.
-Returns ObservablePoint<undefined>
distance
Returns ObservablePoint<undefined>
distance
Distance between camera and the target. Default value is 5.
-Returns number
Returns number
Distance between camera and the target. Default value is 5.
-Parameters
value: number
Returns void
Methods
update Camera
Parameters
value: number
Returns void
Methods
update Camera
Updates the position and rotation of the camera.
Returns void
Generated using TypeDoc
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class Color
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class Color
Represents a color containing RGBA components.
-Hierarchy
Index
Constructors
Accessors
Methods
Constructors
constructor
Hierarchy
Index
Constructors
Accessors
Methods
Constructors
constructor
Creates a new color with the specified components (in range 0-1).
Parameters
r: number = 0
The R (red) component.
@@ -10,31 +10,31 @@The B (blue) component.
a: number = 1
The A (alpha) component.
-Returns Color
Accessors
a
Returns Color
Accessors
a
The A (alpha) component.
-Returns number
Returns number
The A (alpha) component.
-Parameters
value: number
Returns void
b
Parameters
value: number
Returns void
b
The B (blue) component.
-Returns number
Returns number
The B (blue) component.
-Parameters
value: number
Returns void
g
Parameters
value: number
Returns void
g
The G (green) component.
-Returns number
Returns number
The G (green) component.
-Parameters
value: number
Returns void
r
Parameters
value: number
Returns void
r
The R (red) component.
-Returns number
Returns number
The R (red) component.
-Parameters
value: number
Returns void
rgb
Parameters
value: number
Returns void
rgb
The color as an typed array containing RGB.
-Returns Float32Array
rgba
Returns Float32Array
rgba
The color as an typed array containing RGBA.
-Returns Float32Array
Methods
Static from
Returns Float32Array
Methods
Static from
Creates a new color from the specified source.
Parameters
source: Float32Array | number[]
The source to create the color from.
-Returns Color
Static from Bytes
Returns Color
Static from Bytes
Creates a new color with the specified components (in range 0-255).
Parameters
r: number = 0
The R (red) component.
@@ -44,7 +44,7 @@The B (blue) component.
a: number = 255
The A (alpha) component.
-Returns Color
Static from Hex
Returns Color
Static from Hex
Creates a new color from the specified hex value.
Parameters
hex: string | number
The hex value as a string or a number.
diff --git a/docs/classes/Container3D.html b/docs/classes/Container3D.html index b355466e..ef4ff3d4 100644 --- a/docs/classes/Container3D.html +++ b/docs/classes/Container3D.html @@ -1,4 +1,4 @@ -- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class Container3D
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class Container3D
A container represents a collection of 3D objects.
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Returns Container3D
Properties
_bounds
The bounds object, this is used to calculate and store the bounds of the displayObject.
@@ -61,7 +61,7 @@Also be aware of that this may not work nicely with the addChildAt() function, as the zIndex sorting may cause the child to automatically sorted to another position.
PIXI.settings.SORTABLE_CHILDREN
-tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
The visibility of the object. If false the object will not be drawn, and the updateTransform function will not be called.
Only affects recursive calls from parent. You can ask for bounds or call updateTransform manually.
@@ -80,7 +80,7 @@The height of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The height of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. In PixiJS a regular mask must be a {@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it @@ -120,15 +120,15 @@ is the projection of
pivot
in the parent's local space.By default, the pivot is the origin (0, 0).
4.0.0
-Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
rotation
Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
rotation
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
Returns number
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
-Parameters
value: number
Returns void
rotation Quaternion
Parameters
value: number
Returns void
rotation Quaternion
The quaternion rotation of the object.
-Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
The skew factor for the object in radians.
4.0.0
Returns ObservablePoint<any>
The width of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The width of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Indicates if the object is globally visible.
Returns boolean
x
The position of the displayObject on the x axis relative to the local coordinates of the parent. @@ -152,10 +152,10 @@
Returns number
The position of the displayObject on the y axis relative to the local coordinates of the parent. An alias to position.y
-Parameters
value: number
Returns void
z
Parameters
value: number
Returns void
z
The position of the object on the z axis relative to the local coordinates of the parent.
-Returns number
Returns number
The position of the object on the z axis relative to the local coordinates of the parent.
Parameters
value: number
Returns void
z Index
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class Cubemap
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class Cubemap
Cubemap which supports multiple user specified mipmaps.
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
Optional resource: any
Optional options: IBaseTextureOptions<IAutoDetectOptions>
Collection of options
@@ -68,7 +68,7 @@The width of the base texture set when the image has loaded
Static _global Batch
Global number of the texture batch, used by multi-texture renderers.
-Static prefixed
Accessors
levels
Static prefixed
Accessors
levels
Returns the number of mipmap levels.
Returns number
mipmap
Mipmap mode of the texture, affects downscaled images
@@ -92,7 +92,7 @@Returns WRAP_MODES
How the texture wraps
PIXI.settings.WRAP_MODE
-Parameters
value: WRAP_MODES
Returns void
Static faces
Parameters
value: WRAP_MODES
Returns void
Static faces
Returns an array of faces.
Returns ["posx", "negx", "posy", "negy", "posz", "negz"]
Methods
add Listener
Parameters
event: string | symbol
fn: ListenerFn
Optional context: any
Returns Cubemap
cast To Base Texture
Utility function for BaseTexture|Texture cast.
@@ -202,7 +202,7 @@Returns BaseTexture<BufferResource, IAutoDetectOptions>
Static from Colors
Static from Colors
Creates a new cubemap from the specified colors.
Parameters
posx: Color
The color for positive x.
@@ -216,7 +216,7 @@The color for positive z.
negz: Color = posx
The color for negative z.
-Returns Cubemap
Static from Faces
Returns Cubemap
Static from Faces
Creates a new cubemap from the specified faces.
Parameters
faces: CubemapFaces | CubemapFaces[]
The faces to create the cubemap from.
diff --git a/docs/classes/CubemapResource.html b/docs/classes/CubemapResource.html index d04ca871..d344b6fa 100644 --- a/docs/classes/CubemapResource.html +++ b/docs/classes/CubemapResource.html @@ -1,4 +1,4 @@ -- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class CubemapResource
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
source: MipmapResourceArray
levels: number = 1
Returns CubemapResource
Properties
Protected _height
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class CubemapResource
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
source: MipmapResourceArray
levels: number = 1
Returns CubemapResource
Properties
Protected _height
Internal height of the resource.
Protected _width
Internal width of the resource.
@@ -63,7 +63,7 @@X dimension
height: number
Y dimension
-Returns void
style
Parameters
renderer: Renderer
Returns boolean
unbind
Returns void
style
Parameters
renderer: Renderer
Returns boolean
unbind
Unset the parent base texture.
Parameters
baseTexture: BaseTexture<Resource, IAutoDetectOptions>
Returns void
update
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class ImageBasedLighting
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class ImageBasedLighting
Collection of components used for image-based lighting (IBL), a rendering technique which involves capturing an omnidirectional representation of real-world light information as an image.
-Hierarchy
Index
Constructors
Properties
Accessors
Constructors
constructor
Hierarchy
Index
Constructors
Properties
Accessors
Constructors
constructor
Creates a new image-based lighting object.
Parameters
diffuse: Cubemap
Cubemap used for the diffuse component.
specular: Cubemap
Cubemap used for the specular component.
-Returns ImageBasedLighting
Properties
Optional lookup Brdf
Returns ImageBasedLighting
Properties
Optional lookup Brdf
BRDF integration map lookup texture.
-Static default Lookup Brdf
Static default Lookup Brdf
The default BRDF integration map lookup texture.
-Accessors
diffuse
Accessors
diffuse
Cube texture used for the diffuse component.
-Returns Cubemap
specular
Returns Cubemap
specular
Cube mipmap texture used for the specular component.
-Returns Cubemap
valid
Returns Cubemap
valid
Value indicating if this object is valid to be used for rendering.
Returns boolean
Generated using TypeDoc
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class InstancedMesh3D
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
mesh: Mesh3D
material: unknown
Returns InstancedMesh3D
Properties
_bounds
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class InstancedMesh3D
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
mesh: Mesh3D
material: unknown
Returns InstancedMesh3D
Properties
_bounds
The bounds object, this is used to calculate and store the bounds of the displayObject.
Protected _boundsID
Flags the cached bounds as dirty.
@@ -59,7 +59,7 @@Also be aware of that this may not work nicely with the addChildAt() function, as the zIndex sorting may cause the child to automatically sorted to another position.
PIXI.settings.SORTABLE_CHILDREN
-tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
The visibility of the object. If false the object will not be drawn, and the updateTransform function will not be called.
Only affects recursive calls from parent. You can ask for bounds or call updateTransform manually.
@@ -78,7 +78,7 @@The height of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The height of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. In PixiJS a regular mask must be a {@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it @@ -118,15 +118,15 @@ is the projection of
pivot
in the parent's local space.By default, the pivot is the origin (0, 0).
4.0.0
-Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
rotation
Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
rotation
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
Returns number
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
-Parameters
value: number
Returns void
rotation Quaternion
Parameters
value: number
Returns void
rotation Quaternion
The quaternion rotation of the object.
-Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
The skew factor for the object in radians.
4.0.0
Returns ObservablePoint<any>
The width of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The width of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Indicates if the object is globally visible.
Returns boolean
x
The position of the displayObject on the x axis relative to the local coordinates of the parent. @@ -150,10 +150,10 @@
Returns number
The position of the displayObject on the y axis relative to the local coordinates of the parent. An alias to position.y
-Parameters
value: number
Returns void
z
Parameters
value: number
Returns void
z
The position of the object on the z axis relative to the local coordinates of the parent.
-Returns number
Returns number
The position of the object on the z axis relative to the local coordinates of the parent.
Parameters
value: number
Returns void
z Index
Recalculates the bounds of the container.
This implementation will automatically fit the children's bounds into the calculation. Each child's bounds is limited to its mask's bounds or filterArea, if any is applied.
-Returns void
destroy
Returns void
destroy
Removes all internal references and listeners as well as removes children from the display list. Do not use a Container after calling
destroy
.Parameters
options: undefined | boolean | IDestroyOptions
Returns void
disable Temp Parent
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class InstancedModel
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class InstancedModel
Represents an instance of a model.
-Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new model instance from the specified model.
Parameters
model: Model
The model to create instance from.
@@ -49,7 +49,7 @@Does any other displayObject use this object as a mask?
is Sprite
Used to fast check if a sprite is.. a sprite!
-meshes
meshes
The meshes included in the model.
name
parent
renderable
Can this object be rendered, if false the object will not be drawn but the updateTransform @@ -67,7 +67,7 @@
Also be aware of that this may not work nicely with the addChildAt() function, as the zIndex sorting may cause the child to automatically sorted to another position.
PIXI.settings.SORTABLE_CHILDREN
-tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
The visibility of the object. If false the object will not be drawn, and the updateTransform function will not be called.
Only affects recursive calls from parent. You can ask for bounds or call updateTransform manually.
@@ -86,7 +86,7 @@The height of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The height of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. In PixiJS a regular mask must be a {@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it @@ -126,15 +126,15 @@ is the projection of
pivot
in the parent's local space.By default, the pivot is the origin (0, 0).
4.0.0
-Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
rotation
Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
rotation
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
Returns number
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
-Parameters
value: number
Returns void
rotation Quaternion
Parameters
value: number
Returns void
rotation Quaternion
The quaternion rotation of the object.
-Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
The skew factor for the object in radians.
4.0.0
Returns ObservablePoint<any>
The width of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The width of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Indicates if the object is globally visible.
Returns boolean
x
The position of the displayObject on the x axis relative to the local coordinates of the parent. @@ -158,10 +158,10 @@
Returns number
The position of the displayObject on the y axis relative to the local coordinates of the parent. An alias to position.y
-Parameters
value: number
Returns void
z
Parameters
value: number
Returns void
z
The position of the object on the z axis relative to the local coordinates of the parent.
-Returns number
Returns number
The position of the object on the z axis relative to the local coordinates of the parent.
Parameters
value: number
Returns void
z Index
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class InstancedStandardMaterial
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class InstancedStandardMaterial
Material for instanced meshes which uses the standard material.
-Hierarchy
Index
Constructors
Properties
Constructors
constructor
Hierarchy
Index
Constructors
Properties
Constructors
constructor
Creates a new instanced standard material from the specified material.
-Parameters
material: StandardMaterial
Returns InstancedStandardMaterial
Properties
base Color
Parameters
material: StandardMaterial
Returns InstancedStandardMaterial
Properties
base Color
The base color of the material.
Generated using TypeDoc
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0Class Joint
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.1Class Joint
Represents a joint used for vertex skinning.
-Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new joint.
Parameters
inverseBindMatrix: Float32Array
The inverse of the global transform matrix.
@@ -65,7 +65,7 @@Also be aware of that this may not work nicely with the addChildAt() function, as the zIndex sorting may cause the child to automatically sorted to another position.
PIXI.settings.SORTABLE_CHILDREN
-tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
tracked Pointers
Type declaration
[x: number]: InteractionTrackingData
transform
visible
The visibility of the object. If false the object will not be drawn, and the updateTransform function will not be called.
Only affects recursive calls from parent. You can ask for bounds or call updateTransform manually.
@@ -84,7 +84,7 @@The height of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The height of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Parameters
value: number
Returns void
local Transform
Returns Matrix4
mask
Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. In PixiJS a regular mask must be a {@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it @@ -124,15 +124,15 @@ is the projection of
pivot
in the parent's local space.By default, the pivot is the origin (0, 0).
4.0.0
-Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
rotation
Parameters
value: IPointData
Returns void
position
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
rotation
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
Returns number
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
-Parameters
value: number
Returns void
rotation Quaternion
Parameters
value: number
Returns void
rotation Quaternion
The quaternion rotation of the object.
-Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
Returns ObservableQuaternion
Parameters
value: ObservableQuaternion
Returns void
scale
Returns ObservablePoint3D
Parameters
value: ObservablePoint3D
Returns void
skew
The skew factor for the object in radians.
4.0.0
Returns ObservablePoint<any>
The width of the Container, setting this will actually modify the scale to achieve the value set.
Returns number
The width of the Container, setting this will actually modify the scale to achieve the value set.
-Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Parameters
value: number
Returns void
world Transform
Returns Matrix4
world Visible
Indicates if the object is globally visible.
Returns boolean
x
The position of the displayObject on the x axis relative to the local coordinates of the parent. @@ -156,10 +156,10 @@
Returns number
The position of the displayObject on the y axis relative to the local coordinates of the parent. An alias to position.y
-Parameters
value: number
Returns void
z
Parameters
value: number
Returns void
z
The position of the object on the z axis relative to the local coordinates of the parent.
-Returns number
Returns number
The position of the object on the z axis relative to the local coordinates of the parent.
Parameters
value: number
Returns void
z Index
- Preparing search index...
- The search index is not available
Pixi3D - v1.6.0