Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
CWinSystemOSXGL Class Reference

#include <WinSystemOSXGL.h>

Inheritance diagram for CWinSystemOSXGL:
CWinSystemOSX CRenderSystemGL CWinSystemBase ITimerCallback CRenderSystemBase

Public Member Functions

 CWinSystemOSXGL ()=default
 
 ~CWinSystemOSXGL () override=default
 
CRenderSystemBaseGetRenderSystem () override
 
bool ResizeWindow (int newWidth, int newHeight, int newLeft, int newTop) override
 
bool SetFullScreen (bool fullScreen, RESOLUTION_INFO &res, bool blankOtherDisplays) override
 
- Public Member Functions inherited from CWinSystemOSX
 CWinSystemOSX ()
 
 ~CWinSystemOSX () override
 
void OnTimeout () override
 
bool InitWindowSystem () override
 
bool DestroyWindowSystem () override
 
bool CreateNewWindow (const std::string &name, bool fullScreen, RESOLUTION_INFO &res) override
 
bool DestroyWindow () override
 
void UpdateResolutions () override
 
void NotifyAppFocusChange (bool bGaining) override
 
void ShowOSMouse (bool show) override
 
bool Minimize () override
 
bool Restore () override
 
bool Hide () override
 
bool Show (bool raise=true) override
 
void OnMove (int x, int y) override
 
std::string GetClipboardText () override
 
void Register (IDispResource *resource) override
 
void Unregister (IDispResource *resource) override
 
std::unique_ptr< CVideoSyncGetVideoSync (void *clock) override
 
std::vector< std::string > GetConnectedOutputs () override
 
void WindowChangedScreen ()
 
void AnnounceOnLostDevice ()
 
void AnnounceOnResetDevice ()
 
void HandleOnResetDevice ()
 
void StartLostDeviceTimer ()
 
void StopLostDeviceTimer ()
 
voidGetCGLContextObj ()
 
voidGetNSOpenGLContext ()
 
bool MessagePump () override
 
- Public Member Functions inherited from CWinSystemBase
 CWinSystemBase ()
 
virtual ~CWinSystemBase ()
 
virtual const std::string GetName ()
 
virtual bool DisplayHardwareScalingEnabled ()
 
virtual void UpdateDisplayHardwareScaling (const RESOLUTION_INFO &resInfo)
 
virtual bool MoveWindow (int topLeft, int topRight)
 
virtual void FinishModeChange (RESOLUTION res)
 
virtual void FinishWindowResize (int newWidth, int newHeight)
 
virtual bool CenterWindow ()
 
virtual bool IsCreated ()
 
virtual void NotifyAppActiveChange (bool bActivated)
 
virtual bool HasCursor ()
 
virtual bool HasInertialGestures ()
 
virtual bool UseLimitedColor ()
 
virtual int NoOfBuffers ()
 
virtual float GetDisplayLatency ()
 
virtual float GetFrameLatencyAdjustment ()
 
KODI::WINDOWING::COSScreenSaverManagerGetOSScreenSaver ()
 
unsigned int GetWidth ()
 
unsigned int GetHeight ()
 
virtual bool CanDoWindowed ()
 
bool IsFullScreen ()
 
void SetWindowResolution (int width, int height)
 
std::vector< RESOLUTION_WHRScreenResolutions (float refreshrate)
 
std::vector< REFRESHRATERefreshRates (int width, int height, uint32_t dwFlags)
 
REFRESHRATE DefaultRefreshRate (std::vector< REFRESHRATE > rates)
 
virtual bool HasCalibration (const RESOLUTION_INFO &resInfo)
 
void RegisterRenderLoop (IRenderLoop *client)
 
void UnregisterRenderLoop (IRenderLoop *client)
 
void DriveRenderLoop ()
 
CGraphicContextGetGfxContext ()
 
virtual voidGetHWContext ()
 
std::shared_ptr< CDPMSSupportGetDPMSManager ()
 
virtual bool SetHDR (const VideoPicture *videoPicture)
 
virtual bool IsHDRDisplay ()
 
virtual HDR_STATUS ToggleHDR ()
 
virtual HDR_STATUS GetOSHDRStatus ()
 
virtual CHDRCapabilities GetDisplayHDRCapabilities () const
 
virtual DEBUG_INFO_RENDER GetDebugInfo ()
 
- Public Member Functions inherited from ITimerCallback
virtual ~ITimerCallback ()=default
 
- Public Member Functions inherited from CRenderSystemGL
 CRenderSystemGL ()
 
 ~CRenderSystemGL () override
 
bool InitRenderSystem () override
 
bool DestroyRenderSystem () override
 
bool ResetRenderSystem (int width, int height) override
 
bool BeginRender () override
 
bool EndRender () override
 
void PresentRender (bool rendered, bool videoLayer) override
 
bool ClearBuffers (UTILS::COLOR::Color color) override
 
bool IsExtSupported (const char *extension) const override
 
void SetVSync (bool vsync)
 
void ResetVSync ()
 
void SetViewPort (const CRect &viewPort) override
 
void GetViewPort (CRect &viewPort) override
 
bool ScissorsCanEffectClipping () override
 
CRect ClipRectToScissorRect (const CRect &rect) override
 
void SetScissors (const CRect &rect) override
 
void ResetScissors () override
 
void CaptureStateBlock () override
 
void ApplyStateBlock () override
 
void SetCameraPosition (const CPoint &camera, int screenWidth, int screenHeight, float stereoFactor=0.0f) override
 
void SetStereoMode (RENDER_STEREO_MODE mode, RENDER_STEREO_VIEW view) override
 
bool SupportsStereo (RENDER_STEREO_MODE mode) const override
 
bool SupportsNPOT (bool dxt) const override
 
void Project (float &x, float &y, float &z) override
 
std::string GetShaderPath (const std::string &filename) override
 
void GetGLVersion (int &major, int &minor)
 
void GetGLSLVersion (int &major, int &minor)
 
void ResetGLErrors ()
 
void EnableShader (ShaderMethodGL method)
 
void DisableShader ()
 
GLint ShaderGetPos ()
 
GLint ShaderGetCol ()
 
GLint ShaderGetCoord0 ()
 
GLint ShaderGetCoord1 ()
 
GLint ShaderGetUniCol ()
 
GLint ShaderGetModel ()
 
- Public Member Functions inherited from CRenderSystemBase
 CRenderSystemBase ()
 
virtual ~CRenderSystemBase ()
 
virtual void RestoreViewPort ()
 
void GetRenderVersion (unsigned int &major, unsigned int &minor) const
 
const std::string & GetRenderVendor () const
 
const std::string & GetRenderRenderer () const
 
const std::string & GetRenderVersionString () const
 
unsigned int GetMaxTextureSize () const
 
unsigned int GetMinDXTPitch () const
 
virtual void ShowSplash (const std::string &message)
 

Static Public Member Functions

static void Register ()
 
static std::unique_ptr< CWinSystemBaseCreateWinSystem ()
 
- Static Public Member Functions inherited from CWinSystemBase
static std::unique_ptr< CWinSystemBaseCreateWinSystem ()
 

Protected Member Functions

void PresentRenderImpl (bool rendered) override
 
void SetVSyncImpl (bool enable) override
 
- Protected Member Functions inherited from CWinSystemOSX
std::unique_ptr< KODI::WINDOWING::IOSScreenSaverGetOSScreenSaverImpl () override
 
void HandlePossibleRefreshrateChange ()
 
void GetScreenResolution (int *w, int *h, double *fps, int screenIdx)
 
void EnableVSync (bool enable)
 
bool SwitchToVideoMode (int width, int height, double refreshrate)
 
void FillInVideoModes ()
 
bool FlushBuffer (void)
 
bool IsObscured (void)
 
void StartTextInput ()
 
void StopTextInput ()
 
- Protected Member Functions inherited from CWinSystemBase
void UpdateDesktopResolution (RESOLUTION_INFO &newRes, const std::string &output, int width, int height, float refreshRate, uint32_t dwFlags)
 
- Protected Member Functions inherited from CRenderSystemGL
void CalculateMaxTexturesize ()
 
void InitialiseShaders ()
 
void ReleaseShaders ()
 

Additional Inherited Members

- Static Public Attributes inherited from CWinSystemBase
static const char * SETTING_WINSYSTEM_IS_HDR_DISPLAY = "winsystem.ishdrdisplay"
 
- Protected Attributes inherited from CWinSystemOSX
std::unique_ptr< CWinSystemOSXImplm_impl
 
SDL_Surfacem_SDLSurface
 
CWinEventsOSXm_osx_events
 
bool m_obscured
 
std::chrono::time_point< std::chrono::steady_clock > m_obscured_timecheck
 
bool m_movedToOtherScreen
 
int m_lastDisplayNr
 
double m_refreshRate
 
CCriticalSection m_resourceSection
 
std::vector< IDispResource * > m_resources
 
CTimer m_lostDeviceTimer
 
bool m_delayDispReset
 
XbmcThreads::EndTime m_dispResetTimer
 
int m_updateGLContext = 0
 
- Protected Attributes inherited from CWinSystemBase
int m_nWidth = 0
 
int m_nHeight = 0
 
int m_nTop = 0
 
int m_nLeft = 0
 
bool m_bWindowCreated = false
 
bool m_bFullScreen = false
 
bool m_bBlankOtherDisplay = false
 
float m_fRefreshRate = 0.0f
 
std::unique_ptr< KODI::WINDOWING::COSScreenSaverManagerm_screenSaverManager
 
CCriticalSection m_renderLoopSection
 
std::vector< IRenderLoop * > m_renderLoopClients
 
std::unique_ptr< IWinEventsm_winEvents
 
std::unique_ptr< CGraphicContextm_gfxContext
 
std::shared_ptr< CDPMSSupportm_dpms
 
- Protected Attributes inherited from CRenderSystemGL
bool m_bVsyncInit = false
 
int m_width
 
int m_height
 
std::string m_RenderExtensions
 
int m_glslMajor = 0
 
int m_glslMinor = 0
 
GLint m_viewPort [4]
 
std::map< ShaderMethodGL, std::unique_ptr< CGLShader > > m_pShader
 
ShaderMethodGL m_method = ShaderMethodGL::SM_DEFAULT
 
GLuint m_vertexArray = GL_NONE
 
- Protected Attributes inherited from CRenderSystemBase
bool m_bRenderCreated
 
bool m_bVSync
 
unsigned int m_maxTextureSize
 
unsigned int m_minDXTPitch
 
std::string m_RenderRenderer
 
std::string m_RenderVendor
 
std::string m_RenderVersion
 
int m_RenderVersionMinor
 
int m_RenderVersionMajor
 
RENDER_STEREO_VIEW m_stereoView = RENDER_STEREO_VIEW_OFF
 
RENDER_STEREO_MODE m_stereoMode = RENDER_STEREO_MODE_OFF
 
bool m_limitedColorRange = false
 
std::unique_ptr< CGUIImagem_splashImage
 
std::unique_ptr< CGUITextLayoutm_splashMessageLayout
 

Constructor & Destructor Documentation

◆ CWinSystemOSXGL()

CWinSystemOSXGL::CWinSystemOSXGL ( )
default

◆ ~CWinSystemOSXGL()

CWinSystemOSXGL::~CWinSystemOSXGL ( )
overridedefault

Member Function Documentation

◆ CreateWinSystem()

std::unique_ptr< CWinSystemBase > CWinSystemOSXGL::CreateWinSystem ( )
static

◆ GetRenderSystem()

CRenderSystemBase * CWinSystemOSXGL::GetRenderSystem ( )
inlineoverridevirtual

Reimplemented from CWinSystemBase.

◆ PresentRenderImpl()

void CWinSystemOSXGL::PresentRenderImpl ( bool  rendered)
overrideprotectedvirtual

Implements CRenderSystemGL.

◆ Register()

void CWinSystemOSXGL::Register ( )
static

◆ ResizeWindow()

bool CWinSystemOSXGL::ResizeWindow ( int  newWidth,
int  newHeight,
int  newLeft,
int  newTop 
)
overridevirtual

Reimplemented from CWinSystemOSX.

◆ SetFullScreen()

bool CWinSystemOSXGL::SetFullScreen ( bool  fullScreen,
RESOLUTION_INFO res,
bool  blankOtherDisplays 
)
overridevirtual

Reimplemented from CWinSystemOSX.

◆ SetVSyncImpl()

void CWinSystemOSXGL::SetVSyncImpl ( bool  enable)
overrideprotectedvirtual

Implements CRenderSystemGL.


The documentation for this class was generated from the following files: