mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 07:15:27 +00:00
35 lines
776 B
C++
35 lines
776 B
C++
#pragma once
|
|
|
|
#include "SDL_compat.h"
|
|
|
|
class StreamUtils
|
|
{
|
|
public:
|
|
static
|
|
Uint32 getPlatformWindowFlags();
|
|
|
|
static
|
|
void scaleSourceToDestinationSurface(SDL_Rect* src, SDL_Rect* dst);
|
|
|
|
static
|
|
void screenSpaceToNormalizedDeviceCoords(SDL_FRect* rect, int viewportWidth, int viewportHeight);
|
|
|
|
static
|
|
void screenSpaceToNormalizedDeviceCoords(SDL_Rect* src, SDL_FRect* dst, int viewportWidth, int viewportHeight);
|
|
|
|
static
|
|
bool getNativeDesktopMode(int displayIndex, SDL_DisplayMode* mode, SDL_Rect* safeArea);
|
|
|
|
static
|
|
int getDisplayRefreshRate(SDL_Window* window);
|
|
|
|
static
|
|
bool hasFastAes();
|
|
|
|
static
|
|
int getDrmFdForWindow(SDL_Window* window, bool* needsClose);
|
|
|
|
static
|
|
int getDrmFd(bool preferRenderNode);
|
|
};
|