![]() |
DDraceNetwork Documentation
|
#include <base/detect.h>#include <GL/glew.h>#include <SDL.h>#include <SDL_messagebox.h>#include <SDL_vulkan.h>#include <base/log.h>#include <base/math.h>#include <base/tl/threading.h>#include <engine/shared/config.h>#include <engine/shared/localization.h>#include <engine/shared/video.h>#include "backend_sdl.h"#include "backend/opengl/backend_opengl3.h"#include "graphics_threaded.h"#include <engine/graphics.h>#include <algorithm>#include <cstdlib>Functions | |
| static bool | BackendInitGlew (EBackendType BackendType, int &GlewMajor, int &GlewMinor, int &GlewPatch) |
| static int | IsVersionSupportedGlew (EBackendType BackendType, int VersionMajor, int VersionMinor, int VersionPatch, int GlewMajor, int GlewMinor, int GlewPatch) |
| static Uint32 | MessageBoxTypeToSdlFlags (IGraphics::EMessageBoxType Type) |
| static std::optional< int > | ShowMessageBoxImpl (const IGraphics::CMessageBox &MessageBox, SDL_Window *pWindow) |
| std::optional< int > | ShowMessageBoxWithoutGraphics (const IGraphics::CMessageBox &MessageBox) |
| static void | DisplayToVideoMode (CVideoMode *pVMode, SDL_DisplayMode *pMode, float HiDPIScale, int RefreshRate) |
| IGraphicsBackend * | CreateGraphicsBackend (TTranslateFunc &&TranslateFunc) |
|
static |
| IGraphicsBackend * CreateGraphicsBackend | ( | TTranslateFunc && | TranslateFunc | ) |
|
static |
|
static |
|
static |
|
static |
| std::optional< int > ShowMessageBoxWithoutGraphics | ( | const IGraphics::CMessageBox & | MessageBox | ) |
This function should only be used when the graphics are not initialized or when IGraphics::ShowMessageBox failed.