Search
Preparing search index...
The search index is not available
Spider Engine API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
GeometryRenderer
Class GeometryRenderer
Hierarchy
GeometryRenderer
Index
Properties
default
Assets
Methods
apply
Projection
Matrix
begin
draw2DCross
draw2DRect
drawAABB
draw
Billboard
draw
Box
draw
Circle
draw
Cone
draw
Cross
draw
Line
draw
Plane
draw
Quad
draw
Sphere
init
set
View
Matrix
unload
Properties
Static
default
Assets
default
Assets
:
object
[]
= [{path: "Assets/DefaultAssets/Materials/Geometry.Material",set: (asset: Asset) => Private.material = asset as Material,get: () => Private.material}]
Methods
Static
apply
Projection
Matrix
apply
Projection
Matrix
(
projection
:
Matrix44
)
:
void
Parameters
projection:
Matrix44
Returns
void
Static
begin
begin
(
)
:
boolean
Returns
boolean
Static
draw2DCross
draw2DCross
(
x
:
number
, y
:
number
, size
:
number
, color
:
Color
, matrix
:
Matrix44
)
:
void
Parameters
x:
number
y:
number
size:
number
color:
Color
matrix:
Matrix44
Returns
void
Static
draw2DRect
draw2DRect
(
minX
:
number
, minY
:
number
, maxX
:
number
, maxY
:
number
, color
:
Color
, matrix
:
Matrix44
)
:
void
Parameters
minX:
number
minY:
number
maxX:
number
maxY:
number
color:
Color
matrix:
Matrix44
Returns
void
Static
drawAABB
drawAABB
(
aabb
:
AABB
, color
:
Color
, worldMatrix
:
Matrix44
)
:
void
Parameters
aabb:
AABB
color:
Color
worldMatrix:
Matrix44
Returns
void
Static
draw
Billboard
draw
Billboard
(
p
:
Vector3
, size
:
number
, forward
:
Vector3
, color
:
Color
, camera
:
Camera
, texture
?:
Texture
)
:
void
Parameters
p:
Vector3
size:
number
forward:
Vector3
color:
Color
camera:
Camera
Optional
texture:
Texture
Returns
void
Static
draw
Box
draw
Box
(
center
:
Vector3
, extent
:
Vector3
, color
:
Color
, worldMatrix
:
Matrix44
)
:
void
Parameters
center:
Vector3
extent:
Vector3
color:
Color
worldMatrix:
Matrix44
Returns
void
Static
draw
Circle
draw
Circle
(
color
:
Color
, worldMatrix
:
Matrix44
)
:
void
Parameters
color:
Color
worldMatrix:
Matrix44
Returns
void
Static
draw
Cone
draw
Cone
(
radius
:
number
, height
:
number
, distFromOrigin
:
number
, forward
:
Vector3
, up
:
Vector3
, color
:
Color
, worldPosition
:
Vector3
)
:
void
Parameters
radius:
number
height:
number
distFromOrigin:
number
forward:
Vector3
up:
Vector3
color:
Color
worldPosition:
Vector3
Returns
void
Static
draw
Cross
draw
Cross
(
p
:
Vector3
, color
:
Color
)
:
void
Parameters
p:
Vector3
color:
Color
Returns
void
Static
draw
Line
draw
Line
(
start
:
Vector3
, end
:
Vector3
, color
:
Color
, worldMatrix
:
Matrix44
)
:
void
Parameters
start:
Vector3
end:
Vector3
color:
Color
worldMatrix:
Matrix44
Returns
void
Static
draw
Plane
draw
Plane
(
normal
:
Vector3
, distToOrigin
:
number
, color
:
Color
, worldMatrix
:
Matrix44
)
:
void
Parameters
normal:
Vector3
distToOrigin:
number
color:
Color
worldMatrix:
Matrix44
Returns
void
Static
draw
Quad
draw
Quad
(
topLeft
:
Vector3
, topRight
:
Vector3
, botLeft
:
Vector3
, botRight
:
Vector3
, color
:
Color
, worldMatrix
:
Matrix44
)
:
void
Parameters
topLeft:
Vector3
topRight:
Vector3
botLeft:
Vector3
botRight:
Vector3
color:
Color
worldMatrix:
Matrix44
Returns
void
Static
draw
Sphere
draw
Sphere
(
center
:
Vector3
, radius
:
Vector3
, color
:
Color
, worldMatrix
:
Matrix44
)
:
void
Parameters
center:
Vector3
radius:
Vector3
color:
Color
worldMatrix:
Matrix44
Returns
void
Static
init
init
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Static
set
View
Matrix
set
View
Matrix
(
view
:
Matrix44
)
:
void
Parameters
view:
Matrix44
Returns
void
Static
unload
unload
(
)
:
void
Returns
void
Globals
Geometry
Renderer
default
Assets
apply
Projection
Matrix
begin
draw2DCross
draw2DRect
drawAABB
draw
Billboard
draw
Box
draw
Circle
draw
Cone
draw
Cross
draw
Line
draw
Plane
draw
Quad
draw
Sphere
init
set
View
Matrix
unload