OpenTTD Source 20241224-master-gf74b0cf984
Viewport Struct Reference

Data structure for viewport, display of a part of the world. More...

#include <viewport_type.h>

Inheritance diagram for Viewport:
ViewportData

Data Fields

int left
 Screen coordinate left edge of the viewport.
 
int top
 Screen coordinate top edge of the viewport.
 
int width
 Screen width of the viewport.
 
int height
 Screen height of the viewport.
 
int virtual_left
 Virtual left coordinate.
 
int virtual_top
 Virtual top coordinate.
 
int virtual_width
 width << zoom
 
int virtual_height
 height << zoom
 
ZoomLevel zoom
 The zoom level of the viewport.
 
std::shared_ptr< LinkGraphOverlayoverlay
 

Detailed Description

Data structure for viewport, display of a part of the world.

Definition at line 22 of file viewport_type.h.

Field Documentation

◆ height

◆ left

◆ overlay

std::shared_ptr<LinkGraphOverlay> Viewport::overlay

Definition at line 34 of file viewport_type.h.

◆ top

◆ virtual_height

◆ virtual_left

◆ virtual_top

◆ virtual_width

◆ width

◆ zoom


The documentation for this struct was generated from the following file: