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_CGLPixelFormatAttributeConstants that specify the attributes used to choose a pixel format for a CGL rendering context.
- St_CGLContextParameterConstants that identify the parameters you can read or set to tune the behavior of a CGL context.
- St_CGLContextEnableConstants that name the per-context features you can enable or disable in a CGL rendering context.
- St_CGLOpenGLProfileConstants 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_CGLRendererPropertyConstants that identify properties you can query to inspect the characteristics of a GPU renderer.
- St_CGLGlobalOptionConstants that identify global CGL options affecting all rendering contexts in the process.
- StCGLCPContextPriorityRequestConstants 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_CGLErrorConstants that describe the error conditions returned by CGL functions.
- St_CGLGPURestartStatusConstants that report whether the GPU has been reset and the cause of a restart condition.
Type Aliases 42
- TyCGLShareGroupObj
- Tycl_device_id
- TyCGLContextObj
- TyCGLPixelFormatObj
- TyCGLRendererInfoObj
- TyCGLPixelFormatAttribute
- TyCGLRendererProperty
- TyCGLContextEnable
- TyCGLGPURestartStatus
- TyCGLContextParameter
- TyCGLGlobalOption
- TyCGLOpenGLProfile
- TyCGLError
- TyGLbitfield
- TyGLboolean
- TyGLbyte
Show 26 more
- TyGLclampf
- TyGLenum
- TyGLfloat
- TyGLint
- TyGLshort
- TyGLsizei
- TyGLubyte
- TyGLuint
- TyGLushort
- TyGLchar
- TyGLcharARB
- TyGLhandleARB
- TyGLdouble
- TyGLclampd
- TyGLfixed
- TyGLhalf
- TyGLhalfARB
- TyGLint64
- TyGLsync
- TyGLuint64
- TyGLint64EXT
- TyGLuint64EXT
- TyGLintptr
- TyGLsizeiptr
- TyGLintptrARB
- TyGLsizeiptrARB