<!--
{
  "availability" : [
    "macOS: 10.8.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKTextureLoader/init(share:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GLKTextureLoader(im)initWithShareContext:"
  },
  "title" : "init(share:)"
}
-->

# init(share:)

Initializes a new texture loader object.

```
init(share context: NSOpenGLContext)
```

## Parameters

`context`

The share context used to store new textures.

## Return Value

A newly initialized texture loader.

## Discussion

You only create a texture loader object when your app needs to load textures asynchronously.

---

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)