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

OpenTTD Source 15.0-RC2

Variables
video_driver.cpp File Reference

Common code between video driver implementations. More...

`#include "../stdafx.h"`
`#include "../core/random_func.hpp"`
`#include "../network/network.h"`
`#include "../blitter/factory.hpp"`
`#include "../debug.h"`
`#include "../driver.h"`
`#include "../fontcache.h"`
`#include "../gfx_func.h"`
`#include "../gfxinit.h"`
`#include "../progress.h"`
`#include "../rev.h"`
`#include "../thread.h"`
`#include "../window_func.h"`
`#include "video_driver.hpp"`
`#include "../safeguards.h"`

Go to the source code of this file.

## Variables
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

Common code between video driver implementations.

Definition in file video_driver.cpp.

## Variable Documentation

## ◆ _video_hw_accel

bool _video_hw_accel

Whether to consider hardware accelerated video drivers on startup.

Definition at line 27 of file video_driver.cpp.

Referenced by GameOptionsWindow::OnClick(), GameOptionsWindow::OnInvalidateData(), and DriverFactoryBase::SelectDriverImpl().

## ◆ _video_vsync

bool _video_vsync

Whether we should use vsync (only if active video driver supports HW acceleration).

Definition at line 28 of file video_driver.cpp.

Referenced by GameOptionsWindow::OnClick(), and GameOptionsWindow::OnInvalidateData().