<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "Xcode: 26.3.0 -"
  ],
  "documentType" : "article",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/migrating-opengl-code-to-metal",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Migrating OpenGL code to Metal"
}
-->

# Migrating OpenGL code to Metal

Replace your app’s deprecated OpenGL code with Metal.

## Discussion> Note: This sample code project is associated with WWDC 2019 session [611: Bringing OpenGL Apps to Metal](https://developer.apple.com/videos/play/wwdc2019/611/).

### Configure the sample code project

To run the app:

- Build the project with Xcode 11 or later.
- Target an iOS device or simulator with iOS 11 or later.

---

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)