Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
renderer/platform/webgl/WebGlRendererContext
WebGlRendererContext
Class WebGlRendererContext
Hierarchy
WebGlRendererContext
Implements
IRendererContext
Index
Constructors
constructor
Properties
canvas
gl
renderer
viewport
web
Gl
Context
Accessors
as
Web
Gl
as
Web
Gpu
is
Web
Gl2
maybe
Origin
origin
resource
Container
Methods
create
Field
Of
View
Platform
create
Particle
Renderer
create
Persistant
Sprite
Batch
create
Sprite
Batch
create
World
Layer
Renderer
create
World
Renderer
prepare
Viewport
Render
render
set
Web
Gl
Context
Constructors
constructor
new
Web
Gl
Renderer
Context
(
renderer
:
Renderer
, webGlContext
:
WebGlContext
)
:
WebGlRendererContext
Parameters
renderer:
Renderer
webGlContext:
WebGlContext
Returns
WebGlRendererContext
Properties
Readonly
canvas
canvas
:
HTMLCanvasElement
Readonly
gl
gl
:
WebGL2RenderingContext
Readonly
renderer
renderer
:
Renderer
Readonly
viewport
viewport
:
IVector2
= ...
Readonly
web
Gl
Context
web
Gl
Context
:
WebGlContext
Accessors
as
Web
Gl
get
asWebGl
(
)
:
WebGlRendererContext
Returns
WebGlRendererContext
as
Web
Gpu
get
asWebGpu
(
)
:
undefined
Returns
undefined
is
Web
Gl2
get
isWebGl2
(
)
:
boolean
Returns
boolean
maybe
Origin
get
maybeOrigin
(
)
:
undefined
|
IRendererOrigin
Returns
undefined
|
IRendererOrigin
origin
get
origin
(
)
:
IRendererOrigin
Returns
IRendererOrigin
set
origin
(
origin
:
IRendererOrigin
)
:
void
Parameters
origin:
IRendererOrigin
Returns
void
resource
Container
get
resourceContainer
(
)
:
undefined
|
IResourceContainer
<
WebGLTexture
>
Returns
undefined
|
IResourceContainer
<
WebGLTexture
>
Methods
create
Field
Of
View
Platform
create
Field
Of
View
Platform
(
fieldOfView
:
FieldOfView
)
:
IFieldOfViewPlatform
Parameters
fieldOfView:
FieldOfView
Returns
IFieldOfViewPlatform
create
Particle
Renderer
create
Particle
Renderer
(
maxParticles
:
number
, positionSizeData
:
Float32Array
, colorData
:
Uint8Array
)
:
IParticleRendererPlatform
Parameters
maxParticles:
number
positionSizeData:
Float32Array
colorData:
Uint8Array
Returns
IParticleRendererPlatform
create
Persistant
Sprite
Batch
create
Persistant
Sprite
Batch
(
id
:
string
, depthOffset
?:
number
, yOffset
?:
number
, enableAlphaMultiplcation
?:
boolean
)
:
PersistantSpriteBatch
Parameters
id:
string
depthOffset:
number
= 0.0
yOffset:
number
= 0.0
enableAlphaMultiplcation:
boolean
= true
Returns
PersistantSpriteBatch
create
Sprite
Batch
create
Sprite
Batch
(
id
:
string
, capacity
:
number
, depthOffset
?:
number
, yOffset
?:
number
, enableAlphaMultiplcation
?:
boolean
, enforceBeginAndEnd
?:
boolean
)
:
ISpriteBatch
Parameters
id:
string
capacity:
number
depthOffset:
number
= 0.0
yOffset:
number
= 0.0
enableAlphaMultiplcation:
boolean
= true
enforceBeginAndEnd:
boolean
= true
Returns
ISpriteBatch
create
World
Layer
Renderer
create
World
Layer
Renderer
(
worldLayerRenderer
:
WorldLayerRenderer
)
:
IWorldLayerRendererPlatform
Parameters
worldLayerRenderer:
WorldLayerRenderer
Returns
IWorldLayerRendererPlatform
create
World
Renderer
create
World
Renderer
(
worldRenderer
:
WorldRenderer
)
:
IWorldRendererPlatform
Parameters
worldRenderer:
WorldRenderer
Returns
IWorldRendererPlatform
prepare
Viewport
Render
prepare
Viewport
Render
(
viewportOffsetX
:
number
, rendererWidth
:
number
, canvasHeight
:
number
, post
?:
boolean
)
:
void
Parameters
viewportOffsetX:
number
rendererWidth:
number
canvasHeight:
number
Optional
post:
boolean
Returns
void
render
render
(
timeStamp
:
number
, renderersOrder
:
Set
<
Renderer
>
)
:
void
Called for the primary renderer
Parameters
timeStamp:
number
renderersOrder:
Set
<
Renderer
>
Returns
void
set
Web
Gl
Context
set
Web
Gl
Context
(
webGlContext
:
WebGlContext
)
:
void
Parameters
webGlContext:
WebGlContext
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
Web
Gl
Renderer
Context
constructor
canvas
gl
renderer
viewport
web
Gl
Context
as
Web
Gl
as
Web
Gpu
is
Web
Gl2
maybe
Origin
origin
resource
Container
create
Field
Of
View
Platform
create
Particle
Renderer
create
Persistant
Sprite
Batch
create
Sprite
Batch
create
World
Layer
Renderer
create
World
Renderer
prepare
Viewport
Render
render
set
Web
Gl
Context
Generated using
TypeDoc
Called for the primary renderer