mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Refactoring of image storage: new classes ImageType, ImagePixelData, SoftwareImageType, NativeImageType, OpenGLImageType.
This commit is contained in:
parent
c555cbb9cb
commit
0b1cdf6ab1
21 changed files with 501 additions and 446 deletions
|
|
@ -985,11 +985,8 @@ public:
|
|||
{
|
||||
const Rectangle<int>& clipBounds = clip->getClipBounds();
|
||||
|
||||
OpenGLFrameBufferImage* fbi = new OpenGLFrameBufferImage (clipBounds.getWidth(), clipBounds.getHeight());
|
||||
fbi->frameBuffer.clear (Colours::transparentBlack);
|
||||
|
||||
s->transparencyLayer = Image (fbi);
|
||||
s->target = OpenGLTarget (fbi->frameBuffer, clipBounds.getPosition());
|
||||
s->transparencyLayer = Image (OpenGLImageType().create (Image::ARGB, clipBounds.getWidth(), clipBounds.getHeight(), true));
|
||||
s->target = OpenGLTarget (*OpenGLImageType::getFrameBufferFrom (s->transparencyLayer), clipBounds.getPosition());
|
||||
s->transparencyLayerAlpha = opacity;
|
||||
s->cloneClipIfMultiplyReferenced();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue