I have created a custom object that conforms to ImageSource protocol like CircleGenerator
I ran the method activateFramebufferForRendering() like a generator.
This seems to bind the framebuffer and run a render-to-texture.
Like CircleGenerator, My custom generator draws shapes was successful.
However, when loading the texture image, it was not reflected in the view.
Below is a part of the custom class source.
How can I bind a frame buffer and work with render-to-texture from a texture image? I need help.
I have created a custom object that conforms to
ImageSource
protocol likeCircleGenerator
I ran the methodactivateFramebufferForRendering()
like a generator. This seems to bind the framebuffer and run a render-to-texture.Like
CircleGenerator
, My custom generator draws shapes was successful. However, when loading the texture image, it was not reflected in the view.Below is a part of the custom class source.
How can I bind a frame buffer and work with render-to-texture from a texture image? I need help.