---
title: current()
framework: opengles
role: symbol
role_heading: Type Method
path: opengles/eaglcontext/current()
---

# current()

Returns the current rendering context for the calling thread.

## Declaration

```swift
class func current() -> EAGLContext?
```

## Return Value

Return Value The current context for the calling thread.
