|
OpenTTD Source 20260129-master-g2bb01bd0e4
|
Code related to the cocoa video driver(s). More...
#include "../../stdafx.h"#include "../../os/macosx/macos.h"#include "../../os/macosx/macos_objective_c.h"#include "../../openttd.h"#include "../../debug.h"#include "../../error_func.h"#include "../../core/geometry_func.hpp"#include "../../core/math_func.hpp"#include "cocoa_v.h"#include "cocoa_wnd.h"#include "../../blitter/factory.hpp"#include "../../framerate_type.h"#include "../../gfx_func.h"#include "../../thread.h"#include "../../core/random_func.hpp"#include "../../progress.h"#include "../../settings_type.h"#include "../../window_func.h"#include "../../window_gui.h"import <sys/param.h>import <sys/time.h>Go to the source code of this file.
Data Structures | |
| class | OTTD_QuartzView |
| Subclass of OTTD_CocoaView to fix Quartz rendering. More... | |
Functions | |
| static void | ClearWindowBuffer (uint32_t *buffer, uint32_t pitch, uint32_t height) |
| Clear buffer to opaque black. | |
Variables | |
| bool | _cocoa_video_started = false |
| Is the Cocoa video driver running. | |
| static Palette | _local_palette |
| Current palette to use for drawing. | |
| bool | _tab_is_down |
| Is tab button pressed. | |
| static const Dimension | _default_resolutions [] |
| List of common display/window sizes. | |
| static FVideoDriver_CocoaQuartz | iFVideoDriver_CocoaQuartz |
| Register the cocoa video driver. | |
Code related to the cocoa video driver(s).
Definition in file cocoa_v.mm.
|
static |
Clear buffer to opaque black.
| buffer | Pointer to the buffer. |
| pitch | Width of the buffer. |
| height | Height of the buffer. |
Definition at line 562 of file cocoa_v.mm.
Referenced by VideoDriver_CocoaQuartz::AllocateBackingStore().
| bool _cocoa_video_started = false |
Is the Cocoa video driver running.
Definition at line 44 of file cocoa_v.mm.
Referenced by CocoaDialog(), VideoDriver_Cocoa::Initialize(), and VideoDriver_Cocoa::Stop().
|
static |
List of common display/window sizes.
Definition at line 50 of file cocoa_v.mm.
Referenced by VideoDriver_Cocoa::UpdateVideoModes().
|
static |
Current palette to use for drawing.
Definition at line 45 of file cocoa_v.mm.
|
extern |
Is tab button pressed.
Definition at line 77 of file cocoa_wnd.mm.
Referenced by VideoDriver_Cocoa::InputLoop().
|
static |
Register the cocoa video driver.
Definition at line 554 of file cocoa_v.mm.