Skip to content

Latest commit

 

History

History
83 lines (44 loc) · 1.71 KB

_stream_.stream.md

File metadata and controls

83 lines (44 loc) · 1.71 KB

@ericrabil/phea.js

Globals / "stream" / Stream

Class: Stream

Manages the framerate for refreshing

Hierarchy

  • Stream

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Stream(options: StreamOptions): Stream

Defined in src/stream.ts:29

Parameters:

Name Type
options StreamOptions

Returns: Stream

Properties

options

options: StreamOptions

Defined in src/stream.ts:31


running

running: boolean = false

Defined in src/stream.ts:29

Methods

renderSingleFrame

renderSingleFrame(): Promise<[void, void]>

Defined in src/stream.ts:60

Renders a single frame

Returns: Promise<[void, void]>


renderThread

renderThread(): Promise<void>

Defined in src/stream.ts:38

Asynchronously runs the render loop

Returns: Promise<void>