Versions in this module Expand all Collapse all v0 v0.0.4 Jun 30, 2024 Changes in this version + const CommandBeginFrame + type BeginFrameParams struct + FrameTimeTicks float64 + Interval float64 + NoDisplayUpdates bool + Screenshot *ScreenshotParams + func BeginFrame() *BeginFrameParams + func (p *BeginFrameParams) Do(ctx context.Context) (hasDamage bool, screenshotData []byte, err error) + func (p BeginFrameParams) WithFrameTimeTicks(frameTimeTicks float64) *BeginFrameParams + func (p BeginFrameParams) WithInterval(interval float64) *BeginFrameParams + func (p BeginFrameParams) WithNoDisplayUpdates(noDisplayUpdates bool) *BeginFrameParams + func (p BeginFrameParams) WithScreenshot(screenshot *ScreenshotParams) *BeginFrameParams + func (v *BeginFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *BeginFrameParams) UnmarshalJSON(data []byte) error + func (v BeginFrameParams) MarshalEasyJSON(w *jwriter.Writer) + func (v BeginFrameParams) MarshalJSON() ([]byte, error) + type BeginFrameReturns struct + HasDamage bool + ScreenshotData string + func (v *BeginFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *BeginFrameReturns) UnmarshalJSON(data []byte) error + func (v BeginFrameReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v BeginFrameReturns) MarshalJSON() ([]byte, error) + type ScreenshotParams struct + Format ScreenshotParamsFormat + OptimizeForSpeed bool + Quality int64 + func (v *ScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ScreenshotParams) UnmarshalJSON(data []byte) error + func (v ScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ScreenshotParams) MarshalJSON() ([]byte, error) + type ScreenshotParamsFormat string + const ScreenshotParamsFormatJpeg + const ScreenshotParamsFormatPng + const ScreenshotParamsFormatWebp + func (t *ScreenshotParamsFormat) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *ScreenshotParamsFormat) UnmarshalJSON(buf []byte) error + func (t ScreenshotParamsFormat) MarshalEasyJSON(out *jwriter.Writer) + func (t ScreenshotParamsFormat) MarshalJSON() ([]byte, error) + func (t ScreenshotParamsFormat) String() string