A type of ImagePixelData that stores its image data in an OpenGL framebuffer, allowing a JUCE Image object to wrap a framebuffer. More...
#include <juce_OpenGLImage.h>


Public Member Functions | |
| OpenGLImageType () | |
| ~OpenGLImageType () override | |
| virtual Image | convert (const Image &source) const |
| Returns an image which is a copy of the source image, but using this type of storage mechanism. | |
| ImagePixelData::Ptr | create (Image::PixelFormat, int width, int height, bool shouldClearImage) const override |
| Creates a new image of this type, and the specified parameters. | |
| int | getTypeID () const override |
| Must return a unique number to identify this type. | |
Static Public Member Functions | |
| static OpenGLFrameBuffer * | getFrameBufferFrom (const Image &) |
A type of ImagePixelData that stores its image data in an OpenGL framebuffer, allowing a JUCE Image object to wrap a framebuffer.
By creating an Image from an instance of an OpenGLFrameBufferImage, you can then use a Graphics object to draw into the framebuffer using normal JUCE 2D operations.
@tags{OpenGL}
| juce::OpenGLImageType::OpenGLImageType | ( | ) |
|
override |
Returns an image which is a copy of the source image, but using this type of storage mechanism.
For example, to make sure that an image is stored in-memory, you could use:
|
overridevirtual |
Creates a new image of this type, and the specified parameters.
Implements juce::ImageType.
|
static |
|
overridevirtual |
Must return a unique number to identify this type.
Implements juce::ImageType.