1 #ifndef __TEST_NATIVE_IMAGE_H__
2 #define __TEST_NATIVE_IMAGE_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.
21 #include <dali/public-api/images/native-image.h>
25 class TestNativeImage;
26 typedef IntrusivePtr<TestNativeImage> TestNativeImagePointer;
28 class DALI_IMPORT_API TestNativeImage : public Dali::NativeImage
31 static TestNativeImagePointer New(int width, int height);
33 inline virtual bool GlExtensionCreate() {return true;};
34 inline virtual void GlExtensionDestroy() {};
35 inline virtual GLenum TargetTexture() {return 1;};
36 inline virtual void PrepareTexture() {};
37 inline virtual unsigned int GetWidth() const {return mWidth;};
38 inline virtual unsigned int GetHeight() const {return mHeight;};
39 inline virtual Pixel::Format GetPixelFormat() const {return Pixel::RGBA8888;};
42 TestNativeImage(int width, int height);
43 virtual ~TestNativeImage();