---
title: "getValues(_:for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsopenglcontext/getvalues(_:for:)"
---

# getValues(_:for:)

Returns the value of the requested parameter.

## Declaration

```swift
func getValues(_ vals: UnsafeMutablePointer<GLint>, for param: NSOpenGLContext.Parameter)
```

## Parameters

- `vals`: On input, a pointer to a variable with enough space for one or more long integers. On output, the variable contains the value (or values) for the given parameter.
- `param`: The parameter you want to get. For a list of parameters, see the table in doc://com.apple.appkit/documentation/AppKit/NSOpenGLContext/Parameter.

## See Also

### Context Parameter Handling

- [setValues(_:for:)](appkit/nsopenglcontext/setvalues(_:for:).md)
