---
title: NSOpenGLGlobalOption
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nsopenglglobaloption
---

# NSOpenGLGlobalOption

Constants that specify OpenGL options.

## Declaration

```swift
enum NSOpenGLGlobalOption
```

## Overview

Overview These constants are option names for NSOpenGLSetOption and NSOpenGLGetOption.

## Topics

### Constants

- [NSOpenGLGlobalOption.formatCacheSize](appkit/nsopenglglobaloption/formatcachesize.md)
- [NSOpenGLGlobalOption.clearFormatCache](appkit/nsopenglglobaloption/clearformatcache.md)
- [NSOpenGLGlobalOption.retainRenderers](appkit/nsopenglglobaloption/retainrenderers.md)
- [NSOpenGLGlobalOption.useBuildCache](appkit/nsopenglglobaloption/usebuildcache.md)

### Deprecated

- [globalValue](appkit/nsopenglglobaloption/globalvalue.md)

### Initializers

- [init(rawValue:)](appkit/nsopenglglobaloption/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Enumerations

- [NSMultibyteGlyphPacking](appkit/nsmultibyteglyphpacking.md)
- [Glyph Attributes](appkit/glyph-attributes.md)
- [Data Entry Types](appkit/data-entry-types.md)
- [Anonymous](appkit/nsbuttontypes-anonymous.md)
- [Additional Writing Directions](appkit/additional-writing-directions.md)
- [Return values for modal operations](appkit/return-values-for-modal-operations.md)
- [Tags of Views in the FontPanel](appkit/tags-of-views-in-the-fontpanel.md)
