namespace Internal
{
-NativeFrameBufferTexture::NativeFrameBufferTexture( NativeImagePtr nativeImage, Context& context)
+NativeFrameBufferTexture::NativeFrameBufferTexture( NativeImageInterfacePtr nativeImage, Context& context)
: FrameBufferTexture(nativeImage->GetWidth(),
nativeImage->GetHeight(),
- nativeImage->GetPixelFormat(),
context),
mNativeImage(nativeImage)
{
bool NativeFrameBufferTexture::IsFullyOpaque() const
{
- // TODO - Should test actual texture...
return !HasAlphaChannel();
}
bool NativeFrameBufferTexture::HasAlphaChannel() const
{
- return Pixel::HasAlpha(mNativeImage->GetPixelFormat());
+ return mNativeImage->RequiresBlending();
}
bool NativeFrameBufferTexture::Init()
mNativeImage.Reset();
}
-
} //namespace Internal
} //namespace Dali