logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IGameGraphicsService

    Interface for game graphics services.

    Namespace: Serenity.GameGraphics.Application.Interfaces
    Assembly: Serenity.GameGraphics.Application.dll
    Syntax
    public interface IGameGraphicsService : IService, IFoundationSettings

    Methods

    GetCurrentQualityLevel()

    Declaration
    string GetCurrentQualityLevel()
    Returns
    Type Description
    string

    Gets the current quality level.

    GetIsFullScreen()

    Gets whether the game is currently in fullscreen mode.

    Declaration
    bool GetIsFullScreen()
    Returns
    Type Description
    bool

    True if the game is in fullscreen mode; otherwise, false.

    GetQualityLevelList()

    Declaration
    string[] GetQualityLevelList()
    Returns
    Type Description
    string[]

    Gets the list of available quality levels.

    GetScreenResolution()

    Declaration
    string GetScreenResolution()
    Returns
    Type Description
    string

    Gets the current screen resolution as a formatted string (e.g., "1920x1080").

    Initialize(IGameGraphicsSettings, IEventDispatcherService, ILogService, IGameSettingsService)

    Initializes the game graphics service.

    Declaration
    void Initialize(IGameGraphicsSettings settings, IEventDispatcherService eventDispatcherService, ILogService logService, IGameSettingsService gameSettingsService)
    Parameters
    Type Name Description
    IGameGraphicsSettings settings

    The game graphics settings to use.

    IEventDispatcherService eventDispatcherService

    The event dispatcher service to use.

    ILogService logService

    The log service for logging information.

    IGameSettingsService gameSettingsService

    The game settings service for reading persisted user settings.

    SetCurrentQualityLevel(SetCurrentQualityLevelInput)

    Sets the current quality level.

    Declaration
    void SetCurrentQualityLevel(SetCurrentQualityLevelInput input)
    Parameters
    Type Name Description
    SetCurrentQualityLevelInput input

    The input data transfer object containing the new quality level.

    SetIsFullScreen(GameGraphicsSetIsFullScreenInput)

    Sets whether the game should be in fullscreen mode.

    Declaration
    void SetIsFullScreen(GameGraphicsSetIsFullScreenInput input)
    Parameters
    Type Name Description
    GameGraphicsSetIsFullScreenInput input

    The input data transfer object containing the fullscreen mode setting.

    SetScreenResolution(SetScreenResolutionInput)

    Sets the screen resolution.

    Declaration
    void SetScreenResolution(SetScreenResolutionInput input)
    Parameters
    Type Name Description
    SetScreenResolutionInput input

    The input data transfer object containing the desired screen resolution.

    In this article
    © 2026 Serenity. All Rights Reserved