CVOpenGLTextureCacheCreate(_:_:_:_:_:_:)
Creates a new texture cache.
Declaration
func CVOpenGLTextureCacheCreate(_ allocator: CFAllocator?, _ cacheAttributes: CFDictionary?, _ cglContext: CGLContextObj, _ cglPixelFormat: CGLPixelFormatObj, _ textureAttributes: CFDictionary?, _ cacheOut: UnsafeMutablePointer<CVOpenGLTextureCache?>) -> CVReturnParameters
- allocator:
The
CFAllocatorRefto use for allocating the cache. May be NULL. - cacheAttributes:
A dictionary specifying options for the cache’s behavior, or
NULLto use default options. For applicable keys and values, see Cvopengltexturecache Cache Attributes. - cglContext:
The OpenGL context into which the texture objects will be created.
- cglPixelFormat:
The OpenGL pixel format object used to create the passed in OpenGL context.
- textureAttributes:
A
CFDictionaryRefcontaining the attributes to be used for creating theCVOpenGLTextureobjects. May beNULL. - cacheOut:
Upon return, contains the newly created texture cache.
Return Value
Returns kCVReturnSuccess on success.