![]() |
DDraceNetwork Documentation
|
#include <backend_sdl.h>
Public Member Functions | |
| CGraphicsBackend_SDL_GL (TTranslateFunc &&TranslateFunc) | |
| 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) override |
| int | Shutdown () override |
| uint64_t | TextureMemoryUsage () const override |
| uint64_t | BufferMemoryUsage () const override |
| uint64_t | StreamedMemoryUsage () const override |
| uint64_t | StagingMemoryUsage () const override |
| const TTwGraphicsGpuList & | GetGpus () const override |
| int | GetNumScreens () const override |
| const char * | GetScreenName (int Screen) const override |
| void | GetVideoModes (CVideoMode *pModes, int MaxModes, int *pNumModes, float HiDPIScale, int MaxWindowWidth, int MaxWindowHeight, int ScreenId) override |
| void | GetCurrentVideoMode (CVideoMode &CurMode, float HiDPIScale, int MaxWindowWidth, int MaxWindowHeight, int ScreenId) override |
| void | Minimize () override |
| void | SetWindowParams (int FullscreenMode, bool IsBorderless) override |
| bool | SetWindowScreen (int Index, bool MoveToCenter) override |
| bool | UpdateDisplayMode (int Index) override |
| int | GetWindowScreen () override |
| int | WindowActive () override |
| int | WindowOpen () override |
| void | SetWindowGrab (bool Grab) override |
| bool | ResizeWindow (int w, int h, int RefreshRate) override |
| void | GetViewportSize (int &w, int &h) override |
| void | NotifyWindow () override |
| bool | IsScreenKeyboardShown () override |
| void | WindowDestroyNtf (uint32_t WindowId) override |
| void | WindowCreateNtf (uint32_t WindowId) override |
| bool | GetDriverVersion (EGraphicsDriverAgeType DriverAgeType, int &Major, int &Minor, int &Patch, const char *&pName, EBackendType BackendType) override |
| bool | IsConfigModernAPI () override |
| bool | UseTrianglesAsQuad () override |
| bool | HasTileBuffering () override |
| bool | HasQuadBuffering () override |
| bool | HasTextBuffering () override |
| bool | HasQuadContainerBuffering () override |
| bool | Uses2DTextureArrays () override |
| bool | HasTextureArraysSupport () override |
| const char * | GetErrorString () override |
| const char * | GetVendorString () override |
| const char * | GetVersionString () override |
| const char * | GetRendererString () override |
| TGLBackendReadPresentedImageData & | GetReadPresentedImageDataFuncUnsafe () override |
| std::optional< int > | ShowMessageBox (const IGraphics::CMessageBox &MessageBox) override |
| Public Member Functions inherited from CGraphicsBackend_Threaded | |
| 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 |
| Public Member Functions inherited from IGraphicsBackend | |
| virtual | ~IGraphicsBackend ()=default |
Static Public Member Functions | |
| static bool | IsModernAPI (EBackendType BackendType) |
Static Private Member Functions | |
| static EBackendType | DetectBackend () |
| static void | ClampDriverVersion (EBackendType BackendType) |
Private Attributes | |
| SDL_Window * | m_pWindow = nullptr |
| SDL_GLContext | m_GLContext = nullptr |
| ICommandProcessor * | m_pProcessor = nullptr |
| std::atomic< uint64_t > | m_TextureMemoryUsage {0} |
| std::atomic< uint64_t > | m_BufferMemoryUsage {0} |
| std::atomic< uint64_t > | m_StreamMemoryUsage {0} |
| std::atomic< uint64_t > | m_StagingMemoryUsage {0} |
| TTwGraphicsGpuList | m_GpuList |
| TGLBackendReadPresentedImageData | m_ReadPresentedImageDataFunc |
| int | m_NumScreens |
| SBackendCapabilities | m_Capabilities |
| char | m_aVendorString [gs_GpuInfoStringSize] = {} |
| char | m_aVersionString [gs_GpuInfoStringSize] = {} |
| char | m_aRendererString [gs_GpuInfoStringSize] = {} |
| EBackendType | m_BackendType = BACKEND_TYPE_AUTO |
| char | m_aErrorString [256] |
Additional Inherited Members | |
| Public Types inherited from IGraphicsBackend | |
| enum | { INITFLAG_FULLSCREEN = 1 << 0 , INITFLAG_VSYNC = 1 << 1 , INITFLAG_RESIZABLE = 1 << 2 , INITFLAG_BORDERLESS = 1 << 3 , INITFLAG_DESKTOP_FULLSCREEN = 1 << 4 } |
| Protected Member Functions inherited from CGraphicsBackend_Threaded | |
| void | StartProcessor (ICommandProcessor *pProcessor) |
| void | StopProcessor () |
| bool | HasWarning () const |
| CGraphicsBackend_SDL_GL::CGraphicsBackend_SDL_GL | ( | TTranslateFunc && | TranslateFunc | ) |
|
overridevirtual |
Implements IGraphicsBackend.
|
staticprivate |
|
staticprivate |
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
inlineoverridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
inlineoverridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
inlineoverridevirtual |
Implements IGraphicsBackend.
|
inlineoverridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
static |
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
inlineoverridevirtual |
Reimplemented from IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
overridevirtual |
Implements IGraphicsBackend.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |