Class TextureLoader

    • Constructor Detail

      • TextureLoader

        protected TextureLoader​(@NonNull
                                TextureLoader.TextureSpec textureSpec)
        Constructor.
        Parameters:
        textureSpec - texture specification
    • Method Detail

      • getTextureSpec

        @NonNull
        public final TextureLoader.TextureSpec getTextureSpec()
        Retrieves configured texture specification.
        Returns:
        texture spec
      • loadTexture

        public abstract boolean loadTexture​(@NonNull
                                            TextureLoader.TextureContext textureContext,
                                            @NonNull
                                            TextureLoader.FrameContext frameContext)
        Loads GL texture.

        Called on GsdkStreamView GL rendering thread.

        Parameters:
        textureContext - contextual information about the texture where the frame is rendered, invalid after this method returns
        frameContext - contextual information about the frame to be rendered, invalid after this method returns
        Returns:
        true to indicate that texture loading was successful, otherwise false