---
title: "openGLTexture(forContext:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fximagetile/opengltexture(forcontext:)"
---

# openGLTexture(forContext:)

Retrieve an OpenGL texture from the ioSurface for rendering with the passed-in context. You are responsible for deleting this texture.

## Declaration

```swift
func openGLTexture(forContext openGLContext: CGLContextObj!) -> GLuint
```

## See Also

### Instance Methods

- [metalTexture(for:)](professional_video_applications/fximagetile/metaltexture(for:).md)
