Contents

CVOpenGLESTextureCacheCreate(_:_:_:_:_:)

Creates a new Core Video texture cache.

Declaration

func CVOpenGLESTextureCacheCreate(_ allocator: CFAllocator?, _ cacheAttributes: CFDictionary?, _ eaglContext: CVEAGLContext, _ textureAttributes: CFDictionary?, _ cacheOut: UnsafeMutablePointer<CVOpenGLESTextureCache?>) -> CVReturn

Parameters

  • allocator:

    The Cfallocator to use for allocating the texture cache. This parameter can be NULL.

  • cacheAttributes:

    A Cfdictionary containing the attributes of the texture cache itself. This parameter can be NULL.

  • eaglContext:

    The OpenGLES 2.0 context into which the texture objects will be created. OpenGLES 1.x contexts are not supported.

  • textureAttributes:

    A Cfdictionary containing the attributes to be used for creating the Cvopenglestexture objects. This parameter can be NULL.

  • cacheOut:

    A pointer to a CVOpenGLESTextureCacheRef where the newly created texture cache will be placed.

Return Value

Upon successful creation of the texture cache, this function returns kCVReturnSuccess.

See Also

Functions