TechnologiesGraphics, Imaging & Compositing

OpenGL

iOSmacOStvOSwatchOSvisionOS

OpenGL provides legacy OpenGL and CGL APIs for GPU-accelerated 2D and 3D graphics rendering on macOS. Use it to configure rendering contexts and pixel formats through types such as _CGLPixelFormatAttribute, _CGLContextParameter, and _CGLOpenGLProfile, and to query renderer characteristics with _CGLRendererProperty. You can tune context behavior and global state using _CGLContextEnable, _CGLGlobalOption, and CGLCPContextPriorityRequest, and inspect failures and GPU restart conditions with _CGLError and _CGLGPURestartStatus.

Pixel Format & Context Configuration 4

Attributes and parameters that configure how rendering contexts and pixel formats are created and behave.

  • St
    _CGLPixelFormatAttribute
    Constants that specify the attributes used to choose a pixel format for a CGL rendering context.
  • St
    _CGLContextParameter
    Constants that identify the parameters you can read or set to tune the behavior of a CGL context.
  • St
    _CGLContextEnable
    Constants that name the per-context features you can enable or disable in a CGL rendering context.
  • St
    _CGLOpenGLProfile
    Constants that select the OpenGL profile, such as legacy or core, for a CGL rendering context.

Renderer & Global State 3

Properties and options for querying renderer characteristics and tuning global CGL behavior.

  • St
    _CGLRendererProperty
    Constants that identify properties you can query to inspect the characteristics of a GPU renderer.
  • St
    _CGLGlobalOption
    Constants that identify global CGL options affecting all rendering contexts in the process.
  • St
    CGLCPContextPriorityRequest
    Constants that specify the scheduling priority requested for a CGL rendering context.

Errors & GPU Status 2

Codes that report CGL failures and GPU restart conditions.

  • St
    _CGLError
    Constants that describe the error conditions returned by CGL functions.
  • St
    _CGLGPURestartStatus
    Constants that report whether the GPU has been reset and the cause of a restart condition.

Type Aliases 42

  • Ty
    CGLShareGroupObj
  • Ty
    cl_device_id
  • Ty
    CGLContextObj
  • Ty
    CGLPixelFormatObj
  • Ty
    CGLRendererInfoObj
  • Ty
    CGLPixelFormatAttribute
  • Ty
    CGLRendererProperty
  • Ty
    CGLContextEnable
  • Ty
    CGLGPURestartStatus
  • Ty
    CGLContextParameter
  • Ty
    CGLGlobalOption
  • Ty
    CGLOpenGLProfile
  • Ty
    CGLError
  • Ty
    GLbitfield
  • Ty
    GLboolean
  • Ty
    GLbyte
Show 26 more
  • Ty
    GLclampf
  • Ty
    GLenum
  • Ty
    GLfloat
  • Ty
    GLint
  • Ty
    GLshort
  • Ty
    GLsizei
  • Ty
    GLubyte
  • Ty
    GLuint
  • Ty
    GLushort
  • Ty
    GLchar
  • Ty
    GLcharARB
  • Ty
    GLhandleARB
  • Ty
    GLdouble
  • Ty
    GLclampd
  • Ty
    GLfixed
  • Ty
    GLhalf
  • Ty
    GLhalfARB
  • Ty
    GLint64
  • Ty
    GLsync
  • Ty
    GLuint64
  • Ty
    GLint64EXT
  • Ty
    GLuint64EXT
  • Ty
    GLintptr
  • Ty
    GLsizeiptr
  • Ty
    GLintptrARB
  • Ty
    GLsizeiptrARB
← Graphics, Imaging & Compositing