TextureLoader
@objc(GSTextureLoader)
public protocol TextureLoader
Listener for rendering stream frames.
Such a listener can be passed to a ‘StreamView’ by setting ‘StreamView.textureLoader’.
-
Texture specification.
Declaration
Swift
var textureSpec: TextureSpec { get }
-
Called to render a custom GL texture.
Declaration
Swift
func loadTexture(width: Int, height: Int, frame: TextureLoaderFrame?) -> Bool
Parameters
width
texture width
height
texture height
frame
frame data
Return Value
‘true’ on success, otherwise ‘false’