OpenTTD Source 20260206-master-g4d4e37dbf1
OTTD_CGLLayer Class Reference
Inheritance diagram for OTTD_CGLLayer:

Instance Methods

(instancetype) - initWithContext:
(CGLPixelFormatObj) - copyCGLPixelFormatForDisplayMask: [implementation]
(CGLContextObj) - copyCGLContextForPixelFormat: [implementation]
(void) - drawInCGLContext:pixelFormat:forLayerTime:displayTime: [implementation]

Class Methods

(CGLPixelFormatObj) + defaultPixelFormat
(void) + setAllowSoftware: [implementation]

Properties

bool allowSoftware

Private Attributes

CGLContextObj _context

Detailed Description

Definition at line 56 of file cocoa_ogl.mm.

Method Documentation

◆ copyCGLContextForPixelFormat:

- (CGLContextObj) copyCGLContextForPixelFormat: (CGLPixelFormatObj) pf
implementation

Definition at line 117 of file cocoa_ogl.mm.

◆ copyCGLPixelFormatForDisplayMask:

- (CGLPixelFormatObj) copyCGLPixelFormatForDisplayMask: (uint32_t) mask
implementation

Definition at line 112 of file cocoa_ogl.mm.

◆ defaultPixelFormat

+ (CGLPixelFormatObj) defaultPixelFormat

Definition at line 90 of file cocoa_ogl.mm.

◆ drawInCGLContext:pixelFormat:forLayerTime:displayTime:

- (void) drawInCGLContext: (CGLContextObj) ctx
pixelFormat: (CGLPixelFormatObj) pf
forLayerTime: (CFTimeInterval) t
displayTime: (nullable const CVTimeStamp *) ts 
implementation

Definition at line 129 of file cocoa_ogl.mm.

◆ initWithContext:

- (instancetype) initWithContext: (CGLContextObj) context

Definition at line 79 of file cocoa_ogl.mm.

◆ setAllowSoftware:

+ (void) setAllowSoftware: (bool) newVal
implementation

Definition at line 74 of file cocoa_ogl.mm.

Field Documentation

◆ _context

- (CGLContextObj) _context
private

Definition at line 58 of file cocoa_ogl.mm.

Property Documentation

◆ allowSoftware

- (bool) allowSoftware
readwriteatomicassign

Definition at line 70 of file cocoa_ogl.mm.


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