Returns an image provider from an OpenGL texture.
- macOS 10.5–10.14Deprecated
The pixel format of the texture. This must be compatible with the color space.
The width, in bytes, of the texture.
The height, in bytes, of the texture.
An OpenGL texture of type
GLthat is valid on the Quartz Composer OpenGL context. Your application must make sure that the texture exists for the life cycle of the image provider.
_TEXTURE _RECTANGLE _EXT
YESto have Quartz Composer flip the contents of the texture vertically.
The release callback. Your callback must use this type definition:
If you name your callback function
My, you would declare it like this:
QCPlug In Texture Release Callback
Quartz Composer invokes your callback when the memory buffer is no longer needed. The callback can be called from any thread at any time
The context to pass to the release callback.
The color space of the texture. This must be compatible with the pixel format.
A Boolean that specifies whether Quartz Composer should color match the texture. Pass
NOif the texture is a mask or gradient or should not be color matched for some other reason. Otherwise, pass
An image provider.
You must not modify the texture until the release callback is invoked.