OpenTTD Source  20240919-master-gdf0233f4c2
video_driver.hpp File Reference
#include "../driver.h"
#include "../core/geometry_type.hpp"
#include "../core/math_func.hpp"
#include "../gfx_func.h"
#include "../settings_type.h"
#include "../zoom_type.h"
#include "../network/network_func.h"
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <thread>

Go to the source code of this file.

Data Structures

class  VideoDriver
 The base of all video drivers. More...
 
struct  VideoDriver::VideoBufferLocker
 Helper struct to ensure the video buffer is locked and ready for drawing. More...
 

Variables

std::string _ini_videodriver
 The video driver a stored in the configuration file.
 
std::vector< Dimension_resolutions
 List of resolutions.
 
Dimension _cur_resolution
 The current resolution.
 
bool _rightclick_emulate
 Whether right clicking is emulated.
 
bool _video_hw_accel
 Whether to consider hardware accelerated video drivers on startup.
 
bool _video_vsync
 Whether we should use vsync (only if active video driver supports HW acceleration).
 

Detailed Description

Base of all video drivers.

Definition in file video_driver.hpp.