OpenTTD Source 20260129-master-g2bb01bd0e4
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 69 of file cocoa_ogl.mm.

◆ copyCGLPixelFormatForDisplayMask:

- (CGLPixelFormatObj) copyCGLPixelFormatForDisplayMask: (uint32_t)  mask
implementation

Definition at line 69 of file cocoa_ogl.mm.

◆ defaultPixelFormat

+ (CGLPixelFormatObj) defaultPixelFormat

Definition at line 69 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 69 of file cocoa_ogl.mm.

◆ initWithContext:

- (instancetype) initWithContext: (CGLContextObj)  context

Definition at line 69 of file cocoa_ogl.mm.

◆ setAllowSoftware:

+ (void) setAllowSoftware: (bool)  newVal
implementation

Definition at line 69 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 61 of file cocoa_ogl.mm.


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