<!--
{
  "availability" : [
    "FxPlug: 4.0.0 - 4.3.3"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxImageTile/openGLTexture(forContext:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(cs)FxImageTile(im)openGLTextureForContext:"
  },
  "title" : "openGLTexture(forContext:)"
}
-->

# openGLTexture(forContext:)

Retrieve an OpenGL texture from the [`ioSurface`](/documentation/professional_video_applications/FxImageTile/ioSurface) for rendering with the passed-in context. You are responsible for deleting this texture.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)