#include <backend_sdl.h>
|
| | CGraphicsBackend_Threaded (TTranslateFunc &&TranslateFunc) |
| |
| void | RunBuffer (CCommandBuffer *pBuffer) override |
| |
| void | RunBufferSingleThreadedUnsafe (CCommandBuffer *pBuffer) override |
| |
| bool | IsIdle () const override |
| |
| void | WaitForIdle () override |
| |
| void | ProcessError (const SGfxErrorContainer &Error) |
| |
| bool | GetWarning (std::vector< std::string > &WarningStrings) override |
| |
| virtual | ~IGraphicsBackend ()=default |
| |
| virtual int | Init (const char *pName, int *pScreen, int *pWidth, int *pHeight, int *pRefreshRate, int *pFsaaSamples, int Flags, int *pDesktopWidth, int *pDesktopHeight, int *pCurrentWidth, int *pCurrentHeight, class IStorage *pStorage)=0 |
| |
| virtual int | Shutdown ()=0 |
| |
| virtual uint64_t | TextureMemoryUsage () const =0 |
| |
| virtual uint64_t | BufferMemoryUsage () const =0 |
| |
| virtual uint64_t | StreamedMemoryUsage () const =0 |
| |
| virtual uint64_t | StagingMemoryUsage () const =0 |
| |
| virtual const TTwGraphicsGpuList & | GetGpus () const =0 |
| |
| virtual void | GetVideoModes (CVideoMode *pModes, int MaxModes, int *pNumModes, float HiDPIScale, int MaxWindowWidth, int MaxWindowHeight, int Screen)=0 |
| |
| virtual void | GetCurrentVideoMode (CVideoMode &CurMode, float HiDPIScale, int MaxWindowWidth, int MaxWindowHeight, int Screen)=0 |
| |
| virtual int | GetNumScreens () const =0 |
| |
| virtual const char * | GetScreenName (int Screen) const =0 |
| |
| virtual void | Minimize ()=0 |
| |
| virtual void | Maximize ()=0 |
| |
| virtual void | SetWindowParams (int FullscreenMode, bool IsBorderless)=0 |
| |
| virtual bool | SetWindowScreen (int Index)=0 |
| |
| virtual bool | UpdateDisplayMode (int Index)=0 |
| |
| virtual int | GetWindowScreen ()=0 |
| |
| virtual int | WindowActive ()=0 |
| |
| virtual int | WindowOpen ()=0 |
| |
| virtual void | SetWindowGrab (bool Grab)=0 |
| |
| virtual bool | ResizeWindow (int w, int h, int RefreshRate)=0 |
| |
| virtual void | GetViewportSize (int &w, int &h)=0 |
| |
| virtual void | NotifyWindow ()=0 |
| |
| virtual bool | IsScreenKeyboardShown ()=0 |
| |
| virtual void | WindowDestroyNtf (uint32_t WindowId)=0 |
| |
| virtual void | WindowCreateNtf (uint32_t WindowId)=0 |
| |
| virtual bool | GetDriverVersion (EGraphicsDriverAgeType DriverAgeType, int &Major, int &Minor, int &Patch, const char *&pName, EBackendType BackendType)=0 |
| |
| virtual bool | IsConfigModernAPI () |
| |
| virtual bool | UseTrianglesAsQuad () |
| |
| virtual bool | HasTileBuffering () |
| |
| virtual bool | HasQuadBuffering () |
| |
| virtual bool | HasTextBuffering () |
| |
| virtual bool | HasQuadContainerBuffering () |
| |
| virtual bool | Uses2DTextureArrays () |
| |
| virtual bool | HasTextureArraysSupport () |
| |
| virtual const char * | GetErrorString () |
| |
| virtual const char * | GetVendorString ()=0 |
| |
| virtual const char * | GetVersionString ()=0 |
| |
| virtual const char * | GetRendererString ()=0 |
| |
| virtual TGLBackendReadPresentedImageData & | GetReadPresentedImageDataFuncUnsafe ()=0 |
| |
| virtual std::optional< int > | ShowMessageBox (const IGraphics::CMessageBox &MessageBox)=0 |
| |
◆ CGraphicsBackend_Threaded()
| CGraphicsBackend_Threaded::CGraphicsBackend_Threaded |
( |
TTranslateFunc && |
TranslateFunc | ) |
|
◆ GetWarning()
| bool CGraphicsBackend_Threaded::GetWarning |
( |
std::vector< std::string > & |
WarningStrings | ) |
|
|
overridevirtual |
◆ HasWarning()
| bool CGraphicsBackend_Threaded::HasWarning |
( |
| ) |
|
|
inlineprotected |
◆ IsIdle()
| bool CGraphicsBackend_Threaded::IsIdle |
( |
| ) |
const |
|
overridevirtual |
◆ ProcessError()
◆ RunBuffer()
◆ RunBufferSingleThreadedUnsafe()
◆ StartProcessor()
◆ StopProcessor()
| void CGraphicsBackend_Threaded::StopProcessor |
( |
| ) |
|
|
protected |
◆ ThreadFunc()
| void CGraphicsBackend_Threaded::ThreadFunc |
( |
void * |
pUser | ) |
|
|
staticprivate |
◆ WaitForIdle()
| void CGraphicsBackend_Threaded::WaitForIdle |
( |
| ) |
|
|
overridevirtual |
◆ m_BufferInProcess
| std::atomic_bool CGraphicsBackend_Threaded::m_BufferInProcess |
|
private |
◆ m_BufferSwapCond
| std::condition_variable CGraphicsBackend_Threaded::m_BufferSwapCond |
|
private |
◆ m_BufferSwapMutex
| std::mutex CGraphicsBackend_Threaded::m_BufferSwapMutex |
|
private |
◆ m_pBuffer
◆ m_pProcessor
◆ m_pThread
| void* CGraphicsBackend_Threaded::m_pThread |
|
private |
◆ m_Shutdown
| std::atomic_bool CGraphicsBackend_Threaded::m_Shutdown |
|
private |
◆ m_Started
| bool CGraphicsBackend_Threaded::m_Started = false |
|
private |
◆ m_TranslateFunc
◆ m_Warning
The documentation for this class was generated from the following files: