Appearance
copper3d / Modules / Renderer/copperRenderer / copperRenderer
Class: copperRenderer
Renderer/copperRenderer.copperRenderer
Hierarchy
↳
copperRenderer
Table of contents
Constructors
Properties
- container
- currentScene
- delta
- fps
- gui
- interval
- options
- pmremGenerator
- preRenderCallbackFunctions
- renderClock
- renderer
- sceneMap
- stats
Methods
- addGui
- addPreRenderCallbackFunction
- animate
- closeGui
- createScene
- getCurrentScene
- getSceneByName
- hideGui
- init
- onWindowResize
- render
- setClearColor
- setCurrentScene
- setFPS
- updateEnvironment
- updateGui
Constructors
constructor
• new copperRenderer(container
, options?
)
Parameters
Name | Type |
---|---|
container | HTMLDivElement |
options? | ICopperRenderOpt |
Overrides
Defined in
src/Renderer/copperRenderer.ts:19
Properties
container
• container: HTMLDivElement
Inherited from
Defined in
src/Renderer/baseRenderer.ts:15
currentScene
• currentScene: baseScene
Inherited from
Defined in
src/Renderer/baseRenderer.ts:20
delta
• Private
delta: number
= 0
Defined in
src/Renderer/copperRenderer.ts:14
fps
• Private
fps: number
= 30
Defined in
src/Renderer/copperRenderer.ts:12
gui
• gui: null
| GUI
Inherited from
Defined in
src/Renderer/baseRenderer.ts:17
interval
• Private
interval: number
Defined in
src/Renderer/copperRenderer.ts:15
options
• options: undefined
| ICopperRenderOpt
Inherited from
Defined in
src/Renderer/baseRenderer.ts:23
pmremGenerator
• pmremGenerator: PMREMGenerator
Inherited from
Defined in
src/Renderer/baseRenderer.ts:21
preRenderCallbackFunctions
• preRenderCallbackFunctions: Function
[] = []
Defined in
src/Renderer/copperRenderer.ts:17
renderClock
• Private
renderClock: Clock
Defined in
src/Renderer/copperRenderer.ts:13
renderer
• renderer: WebGLRenderer
Inherited from
Defined in
src/Renderer/baseRenderer.ts:16
sceneMap
• Private
sceneMap: SceneMapType
= {}
Defined in
src/Renderer/copperRenderer.ts:11
stats
• stats: Stats
Inherited from
Defined in
src/Renderer/baseRenderer.ts:18
Methods
addGui
▸ addGui(): void
Returns
void
Inherited from
Defined in
src/Renderer/baseRenderer.ts:141
addPreRenderCallbackFunction
▸ addPreRenderCallbackFunction(callbackFunction
): void
Parameters
Name | Type |
---|---|
callbackFunction | Function |
Returns
void
Defined in
src/Renderer/copperRenderer.ts:60
animate
▸ animate(time?
): void
Parameters
Name | Type |
---|---|
time? | number |
Returns
void
Defined in
src/Renderer/copperRenderer.ts:66
closeGui
▸ closeGui(): void
Returns
void
Inherited from
Defined in
src/Renderer/baseRenderer.ts:133
createScene
▸ createScene(name
): undefined
| copperScene
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| copperScene
Defined in
src/Renderer/copperRenderer.ts:41
getCurrentScene
▸ getCurrentScene(): baseScene
Returns
Inherited from
Defined in
src/Renderer/baseRenderer.ts:127
getSceneByName
▸ getSceneByName(name
): copperScene
| baseScene
| copperMScene
Parameters
Name | Type |
---|---|
name | string |
Returns
copperScene
| baseScene
| copperMScene
Defined in
src/Renderer/copperRenderer.ts:23
hideGui
▸ hideGui(): void
Returns
void
Inherited from
Defined in
src/Renderer/baseRenderer.ts:130
init
▸ init(): void
Returns
void
Inherited from
Defined in
src/Renderer/baseRenderer.ts:83
onWindowResize
▸ onWindowResize(): void
Returns
void
Defined in
src/Renderer/copperRenderer.ts:64
render
▸ render(): void
Returns
void
Defined in
src/Renderer/copperRenderer.ts:91
setClearColor
▸ setClearColor(clearColor?
, alpha?
): void
Parameters
Name | Type | Default value |
---|---|---|
clearColor | number | 0x000000 |
alpha | number | 0 |
Returns
void
Inherited from
Defined in
src/Renderer/baseRenderer.ts:137
setCurrentScene
▸ setCurrentScene(sceneIn
): void
Parameters
Name | Type |
---|---|
sceneIn | copperScene |
Returns
void
Defined in
src/Renderer/copperRenderer.ts:31
setFPS
▸ setFPS(fps
): void
Parameters
Name | Type |
---|---|
fps | number |
Returns
void
Defined in
src/Renderer/copperRenderer.ts:27
updateEnvironment
▸ updateEnvironment(vignette?
): void
Parameters
Name | Type |
---|---|
vignette? | customMeshType |
Returns
void
Inherited from
baseRenderer.updateEnvironment
Defined in
src/Renderer/baseRenderer.ts:95
updateGui
▸ updateGui(): void
Returns
void