DDraceNetwork Docs
backend_sdl.cpp File Reference
#include <base/detect.h>
#include <GL/glew.h>
#include <SDL.h>
#include <SDL_messagebox.h>
#include <base/math.h>
#include <cstdlib>
#include <engine/shared/config.h>
#include <engine/shared/localization.h>
#include <base/tl/threading.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 dependency graph for backend_sdl.cpp:

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 void DisplayToVideoMode (CVideoMode *pVMode, SDL_DisplayMode *pMode, int HiDPIScale, int RefreshRate)
 
IGraphicsBackendCreateGraphicsBackend (TTranslateFunc &&TranslateFunc)
 

Function Documentation

◆ BackendInitGlew()

static bool BackendInitGlew ( EBackendType  BackendType,
int &  GlewMajor,
int &  GlewMinor,
int &  GlewPatch 
)
static

◆ CreateGraphicsBackend()

IGraphicsBackend * CreateGraphicsBackend ( TTranslateFunc &&  TranslateFunc)

◆ DisplayToVideoMode()

static void DisplayToVideoMode ( CVideoMode pVMode,
SDL_DisplayMode *  pMode,
int  HiDPIScale,
int  RefreshRate 
)
static

◆ IsVersionSupportedGlew()

static int IsVersionSupportedGlew ( EBackendType  BackendType,
int  VersionMajor,
int  VersionMinor,
int  VersionPatch,
int  GlewMajor,
int  GlewMinor,
int  GlewPatch 
)
static