---
title: defaultPixelFormat()
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nsopenglview/defaultpixelformat()
---

# defaultPixelFormat()

Returns a default NSOpenGLPixelFormat object.

## Declaration

```swift
class func defaultPixelFormat() -> NSOpenGLPixelFormat
```

## Return Value

Return Value A pixel format object with no attributes set.

## Discussion

Discussion Typically used with the initializer init(frame:pixelFormat:), this object has no attributes set.

## See Also

### Managing the NSOpenGLPixelFormat

- [pixelFormat](appkit/nsopenglview/pixelformat.md)
