---
title: openGLPixelFormat()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/qcview/openglpixelformat()
---

# openGLPixelFormat()

Returns the OpenGL pixel format used by the view.

## Declaration

```swift
func openGLPixelFormat() -> NSOpenGLPixelFormat!
```

## Return Value

Return Value An NSOpenGLPixelFormat object.

## Discussion

Discussion This pixel format as a read-only object. Do not attempt to change any of its settings.

## See Also

### Working With OpenGL

- [openGLContext()](quartz/qcview/openglcontext().md)
