OpenTTD Source: src/video/sdl2_opengl_v.cpp File Reference

OpenTTD Source 15.0-RC2

Macros | Functions | Variables
sdl2_opengl_v.cpp File Reference

Implementation of the OpenGL backend for SDL2 video driver. More...

`#include "../stdafx.h"`
`#include "../openttd.h"`
`#include "../gfx_func.h"`
`#include "../rev.h"`
`#include "../blitter/factory.hpp"`
`#include "../network/network.h"`
`#include "../thread.h"`
`#include "../progress.h"`
`#include "../fileio_func.h"`
`#include "../framerate_type.h"`
`#include "../window_func.h"`
`#include "sdl2_opengl_v.h"`
`#include <SDL.h>`
`#include <mutex>`
`#include <condition_variable>`
`#include <GL/gl.h>`
`#include "../3rdparty/opengl/glext.h"`
`#include "opengl.h"`
`#include "../safeguards.h"`

Go to the source code of this file.

## Functions
static OGLProc | GetOGLProcAddressCallback (const char *proc)
| Platform-specific callback to get an OpenGL function pointer.

## Variables
static FVideoDriver_SDL_OpenGL | iFVideoDriver_SDL_OpenGL

## Detailed Description

Implementation of the OpenGL backend for SDL2 video driver.

Definition in file sdl2_opengl_v.cpp.

## Macro Definition Documentation

## ◆ APIENTRY

#define APIENTRY

Definition at line 12 of file sdl2_opengl_v.cpp.

## ◆ WINGDIAPI

#define WINGDIAPI

Definition at line 11 of file sdl2_opengl_v.cpp.

## Function Documentation

## ◆ GetOGLProcAddressCallback()

static OGLProc GetOGLProcAddressCallback | ( | const char * | proc | ) |
| static

Platform-specific callback to get an OpenGL function pointer.

Definition at line 42 of file sdl2_opengl_v.cpp.

## Variable Documentation

## ◆ iFVideoDriver_SDL_OpenGL

FVideoDriver_SDL_OpenGL iFVideoDriver_SDL_OpenGL
| static

Definition at line 39 of file sdl2_opengl_v.cpp.