Tizen Native API
5.0
|
NativeImage represents a platform specific image resource. More...
Public Member Functions | |
NativeImage () DALI_DEPRECATED_API | |
Constructor with creates an uninitialized NativeImage object. | |
~NativeImage () DALI_DEPRECATED_API | |
Destructor. | |
NativeImage (const NativeImage &handle) DALI_DEPRECATED_API | |
This copy constructor is required for (smart) pointer semantics. | |
NativeImage & | operator= (const NativeImage &rhs) DALI_DEPRECATED_API |
This assignment operator is required for (smart) pointer semantics. | |
void | CreateGlTexture () DALI_DEPRECATED_API |
Triggers asynchronous creation of backing GL texture immediately. | |
const char * | GetCustomFragmentPreFix () DALI_DEPRECATED_API |
Gets custom fragment prefix for rendering a native image. | |
const char * | GetCustomSamplerTypename () DALI_DEPRECATED_API |
Gets custom sampler type name for rendering a native image. | |
Static Public Member Functions | |
static NativeImage | New (NativeImageInterface &nativeImageInterface) DALI_DEPRECATED_API |
Creates a new NativeImage, which used native resources. | |
static NativeImage | DownCast (BaseHandle handle) DALI_DEPRECATED_API |
Downcasts a handle to NativeImage handle. |
NativeImage represents a platform specific image resource.
Its data is provided by native resources, such as shared bitmap memory or pixmap.
Constructor with creates an uninitialized NativeImage object.
Use NativeImage::New(...) to create an initialised object.
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
Dali::NativeImage::NativeImage | ( | const NativeImage & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
[in] | handle | A reference to the copied handle |
void Dali::NativeImage::CreateGlTexture | ( | ) |
Triggers asynchronous creation of backing GL texture immediately.
The normal policy is for a GL texture to created lazily when needed. This function forces the allocation of a texture to happen at the earliest opportunity.
static NativeImage Dali::NativeImage::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts a handle to NativeImage handle.
If handle points to a NativeImage object, the downcast produces valid handle. If not, the returned handle is left uninitialized.
[in] | handle | Handle to an object |
Reimplemented from Dali::Image.
const char* Dali::NativeImage::GetCustomFragmentPreFix | ( | ) |
Gets custom fragment prefix for rendering a native image.
const char* Dali::NativeImage::GetCustomSamplerTypename | ( | ) |
Gets custom sampler type name for rendering a native image.
static NativeImage Dali::NativeImage::New | ( | NativeImageInterface & | nativeImageInterface | ) | [static] |
Creates a new NativeImage, which used native resources.
The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE
[in] | nativeImageInterface | An reference to the object of the interface implementation |
NativeImage& Dali::NativeImage::operator= | ( | const NativeImage & | rhs | ) |
This assignment operator is required for (smart) pointer semantics.
[in] | rhs | A reference to the copied handle |