Using the GLTexture class GLTexture adds support for OpenGL textures to the built-in PImage class. The texture can be thought in a similar manner as the pixels property of PImage. An image is copied from the canvas of the PImage to the pixels array by calling the loadPixels() function. Similarly, the pixel data can be transferred to the texture by calling loadTexture(). In a reverse order, the up
{{#tags}}- {{label}}
{{/tags}}