Documentation ¶
Overview ¶
Package display specifies the preference values for the displaying of a TV image by a GUI. The types in this package are intended to be agnostic of which GUI system is being used.
The package also houses the shaders subpackage. GLSL shaders should also be GUI system agnostic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRT ¶
type CRT struct { Enabled prefs.Bool Curve prefs.Bool RoundedCorners prefs.Bool Bevel prefs.Bool Shine prefs.Bool Mask prefs.Bool Scanlines prefs.Bool Interference prefs.Bool Flicker prefs.Bool Fringing prefs.Bool Ghosting prefs.Bool Phosphor prefs.Bool CurveAmount prefs.Float RoundedCornersAmount prefs.Float BevelSize prefs.Float MaskIntensity prefs.Float MaskFine prefs.Float ScanlinesIntensity prefs.Float ScanlinesFine prefs.Float InterferenceLevel prefs.Float FlickerLevel prefs.Float FringingAmount prefs.Float GhostingAmount prefs.Float PhosphorLatency prefs.Float PhosphorBloom prefs.Float Sharpness prefs.Float BlackLevel prefs.Float PixelPerfectFade prefs.Float // contains filtered or unexported fields }
func (*CRT) SetDefaults ¶
func (p *CRT) SetDefaults()
SetDefaults revers all CRT settings to default values.
type Colour ¶
type Colour struct { Brightness prefs.Float Contrast prefs.Float Saturation prefs.Float Hue prefs.Float // contains filtered or unexported fields }
func (*Colour) SetDefaults ¶
func (p *Colour) SetDefaults()
SetDefaults reverts all colour values to default
type Preferences ¶
func NewPreferences ¶
func NewPreferences() (*Preferences, error)
NewPreferences is the preferred method of initialisation for the Preferences type.
Click to show internal directories.
Click to hide internal directories.