Scylla Framework
  • API Reference
Search Results for

    Show / Hide Table of Contents
    • Scylla.Console.TextMode
      • IConsoleScreen
      • TextModeDebugConsoleDisplay
      • TicTacToeCommand
      • TicTacToeScreen
    • Scylla.TextMode
      • ANSIAttributeParser
      • ANSIColor
      • ANSISGRAttributes
      • AmbientEffectBase
      • BackgroundBlendMode
      • BoxStyle
      • BoxStyleCharacters
      • BoxStyleCharacters.BoxChars
      • CRTSettings
      • Cell
      • CellAttributes
      • CellAttributesExtensions
      • CellBuffer
      • CellBufferRenderer
      • CellGrid
      • CellMask
      • CellPosition
      • CellRange
      • CellRect
      • ColorCycleEffect
      • ColorCycleEffectPreset
      • CrossFadeEffect
      • CursorStyle
      • DecodeEffect
      • DecodeEffectPreset
      • DigitalRainEffect
      • DigitalRainEffectPreset
      • EffectsSettings
      • FadeEffect
      • FadeEffectPreset
      • FlickerEffect
      • FlickerEffectPreset
      • GlitchEffect
      • GlitchEffectPreset
      • GlyphAtlasCache
      • GridSettings
      • IAutoCompleter
      • IInputHistory
      • ITextEffect
      • ITextEffectContext
      • ITextModeGridProvider
      • ITextModePointerMapper
      • ITextModeRenderSource
      • ITextModeViewHost
      • IVTParserHandler
      • InputHistory
      • MaskTransitionEffect
      • MouseEncodingMode
      • MouseTrackingMode
      • PackedGlyphData
      • PulseEffect
      • PulseEffectPreset
      • PushEffect
      • PushEffectPreset
      • SDFSettings
      • ScrollbackAttributeRun
      • ScrollbackLine
      • ScyllaTextMode
      • ScyllaTextMode.Meta
      • ScyllaTextModeConfiguration
      • SlideInEffect
      • SlideInEffectPreset
      • StaticTuneInEffect
      • StaticTuneInEffectPreset
      • TerminalCLI
      • TerminalEmulator
      • TerminalGridRenderer
      • TerminalInputEncoder
      • TerminalMouseButton
      • TerminalScrollbackBuffer
      • TerminalSettings
      • TextAlignment
      • TextEffectBase
      • TextEffectCompletedEvent
      • TextEffectDirection
      • TextEffectExtensions
      • TextEffectMaskPattern
      • TextEffectPreset
      • TextEffectPushMode
      • TextEffectSequencer
      • TextEffectStartedEvent
      • TextEffectState
      • TextEffectTimeMode
      • TextEffects
      • TextModeCellBorder
      • TextModeColorDefaults
      • TextModeColorScheme
      • TextModeColorSet
      • TextModeConfigurationChangedEvent
      • TextModeConsole
      • TextModeConstants
      • TextModeEffectPlayer
      • TextModeGridCapture
      • TextModeLayoutUtil
      • TextModeMaterials
      • TextModeMouseReporter
      • TextModeMouseReportingEvent
      • TextModeSelectionChangedEvent
      • TextModeSelectionEndedEvent
      • TextModeSelectionManager
      • TextModeSelectionStartedEvent
      • TextModeTerminal
      • TextModeTerminalColorTheme
      • TextModeTerminalHost
      • TextModeTerminalSettings
      • TextModeTerminalStartMode
      • TextModeThemeBackground
      • TextModeThemeChangedEvent
      • TextModeThemeRemapper
      • TextModeThemes
      • TextModeView
      • TextWrapMode
      • ThemeSettings
      • TransitionEffectBase
      • TransitionEffectPreset
      • TwinkleEffect
      • TwinkleEffectPreset
      • TypewriterCharacterRevealedEvent
      • TypewriterEffect
      • TypewriterEffectPreset
      • UITextModeView
      • VTParser
      • WaveEffect
      • WaveEffectPreset
    • Scylla.TextMode.CRT
      • CRTBeam
      • CRTBeamClock
      • CRTBeamScanDirection
      • CRTBeamStatus
      • CRTCalibrationPattern
      • CRTCurvatureShape
      • CRTGeometry
      • CRTHDR
      • CRTHDRDisplay
      • CRTHDRTarget
      • CRTHorizontalKernel
      • CRTImageRegion
      • CRTMaskType
      • CRTQualityTier
      • CRTScaleMode
      • CRTSignalStandard
      • CRTSignalType
      • ITextModeCRTCameraEffect
      • ITextModeCRTHDRDisplaySource
      • TextModeCRTBeam
      • TextModeCRTCalibration
      • TextModeCRTCameraEffects
      • TextModeCRTConstants
      • TextModeCRTDriver
      • TextModeCRTHDR
      • TextModeCRTImageRenderer
      • TextModeCRTMonitor
      • TextModeCRTPreset
      • TextModeCRTPresetRegistry
      • TextModeCRTScreen
      • TextModeCRTSettings
      • TextModeCRTTube
    • Scylla.TextMode.Editor
      • CellGridPreviewWidget
      • ColorPaletteWidget
      • ITextModeCRTCameraSetupProvider
      • ScyllaTextModeConfigurationEditor
      • ScyllaTextModeDependencyProvider
      • ScyllaTextModeEditor
      • ScyllaTextModeMenuItems
      • ScyllaTextModeShaderProvider
      • TextModeCRTCameraSetup
      • TextModeCRTCameraStatus
      • TextModeCRTDriverEditor
      • TextModeCRTMonitorEditor
      • TextModeCRTPresetEditor
      • TextModeCRTPresetGenerator
      • TextModeColorAssetGenerator
      • TextModeColorPaletteDefaults
      • TextModeTerminalHostEditor
      • TextModeThemeField
      • TextModeViewEditor
      • TextModeViewEditorBase
      • UITextModeViewEditor
    • Scylla.TextMode.URP
      • CRTQualityTierParameter
      • TextModeCRTInjectionPoint
      • TextModeCRTPresetParameter
      • TextModeCRTRendererFeature
      • TextModeCRTVolume

    Class TextModeCRTHDR

    The registration point for HDR display information. A render pipeline package can register a source that knows about its own settings; the CRT asks here every frame.

    Inheritance
    object
    TextModeCRTHDR
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Scylla.TextMode.CRT
    Assembly: ScyllaTextMode.CRT.dll
    Syntax
    public static class TextModeCRTHDR
    Remarks

    HDR mask mode uses the answer to decide how much headroom above paper white the display has; see CRTHDR. The registration is static state that lives as long as the domain, so a package that registers a source must unregister it when its pipeline stops being the active one.

    The following example registers a source that reports a fixed display, and removes it again.

    private sealed class FixedHDRSource : ITextModeCRTHDRDisplaySource
    {
        public bool TryGetDisplay(Camera camera, out CRTHDRDisplay display)
        {
            display = new CRTHDRDisplay(true, true, 203f, 0.01f, 1000f);
            return true;
        }
    }
    

    var source = new FixedHDRSource(); TextModeCRTHDR.Register(source);

    var display = TextModeCRTHDR.GetDisplay(Camera.main);

    TextModeCRTHDR.Unregister(source);

    Properties

    Source

    Gets the registered source, or null when the engine's HDR output settings are used.

    Declaration
    public static ITextModeCRTHDRDisplaySource Source { get; }
    Property Value
    Type Description
    ITextModeCRTHDRDisplaySource

    The source last passed to Register(ITextModeCRTHDRDisplaySource), or null.

    Methods

    GetDisplay(Camera)

    Returns what the display shows for a camera, from the registered source or, without one, from the engine's HDR output settings. The engine's settings are also used when the registered source cannot answer.

    Declaration
    public static CRTHDRDisplay GetDisplay(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera that draws the picture, or null when it is not known.

    Returns
    Type Description
    CRTHDRDisplay

    What the display reports; SDR on a standard display.

    GetEngineDisplay(Camera)

    Returns what the engine's HDR output settings report for the main display. HDR counts as active for a camera only when the camera renders in HDR. When the display supports HDR but HDR output is switched off, the result is available but not active, with all luminance values 0.

    Declaration
    public static CRTHDRDisplay GetEngineDisplay(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera that draws the picture, or null when it is not known.

    Returns
    Type Description
    CRTHDRDisplay

    What the display reports; SDR on a standard display.

    Register(ITextModeCRTHDRDisplaySource)

    Registers the source of the active render pipeline package, replacing any earlier one.

    Declaration
    public static void Register(ITextModeCRTHDRDisplaySource source)
    Parameters
    Type Name Description
    ITextModeCRTHDRDisplaySource source

    The source. Null clears the registration.

    Unregister(ITextModeCRTHDRDisplaySource)

    Removes a source, for example when its render pipeline is no longer active. Nothing happens when another source has replaced it in the meantime.

    Declaration
    public static void Unregister(ITextModeCRTHDRDisplaySource source)
    Parameters
    Type Name Description
    ITextModeCRTHDRDisplaySource source

    The source to remove. Null is ignored.

    In this article
    Back to top Scylla Framework - TextMode Module API Documentation