1 #ifndef __DALI_INTERNAL_FRAME_BUFFER_NATIVE_IMAGE_TEXTURE_H__
2 #define __DALI_INTERNAL_FRAME_BUFFER_NATIVE_IMAGE_TEXTURE_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
24 #include <dali/internal/render/gl-resources/texture.h>
25 #include <dali/internal/render/gl-resources/frame-buffer-texture.h>
26 #include <dali/integration-api/bitmap.h>
27 #include <dali/integration-api/debug.h>
36 * Frame Buffer Texture created from NativeImage.
37 * Used as a frame buffer for RenderTask
39 class NativeFrameBufferTexture : public FrameBufferTexture
43 * Creates a new texture object
44 * @param[in] nativeImage The NativeImage
45 * @param context The GL context
47 NativeFrameBufferTexture( NativeImagePtr nativeImage, Context& context);
52 virtual ~NativeFrameBufferTexture();
55 * @copydoc Texture::IsFullyOpaque
57 virtual bool IsFullyOpaque() const;
60 * @copydoc Texture::HasAlphaChannel
62 virtual bool HasAlphaChannel() const;
65 * @copydoc Texture::Init
71 * @copydoc Texture::CreateGlTexture
73 virtual bool CreateGlTexture();
76 * @copydoc Texture::GlCleanup
78 virtual void GlCleanup();
81 NativeImagePtr mNativeImage; ///< reference to NativeImage the Texture was created from
83 }; // class NativeFrameBufferTexture
85 } //namespace Internal