Tizen Native API
6.5
|
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. |
Detailed Description
NativeImage represents a platform specific image resource.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
Its data is provided by native resources, such as shared bitmap memory or pixmap.
- Since:
- 3.0, DALi version 1.0.0
Constructor & Destructor Documentation
Constructor with creates an uninitialized NativeImage object.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
Use NativeImage::New(...) to create an initialised object.
- Since:
- 3.0, DALi version 1.0.0
Destructor.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
This is non-virtual since derived Handle types must not contain data or virtual methods.
- Since:
- 3.0, DALi version 1.0.0
Dali::NativeImage::NativeImage | ( | const NativeImage & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] handle A reference to the copied handle
Member Function Documentation
void Dali::NativeImage::CreateGlTexture | ( | ) |
Triggers asynchronous creation of backing GL texture immediately.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
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.
- Since:
- 3.0, DALi version 1.0.0
- Note:
- If the application loses its GL context, native images may lose their GL textures. This function can be called again after context regain to force the creation of the GL texture if still needed.
static NativeImage Dali::NativeImage::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts a handle to NativeImage handle.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
If handle points to a NativeImage object, the downcast produces valid handle. If not, the returned handle is left uninitialized.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] handle Handle to an object
- Returns:
- handle to a NativeImage or an uninitialized handle
Reimplemented from Dali::Image.
const char* Dali::NativeImage::GetCustomFragmentPreFix | ( | ) |
Gets custom fragment prefix for rendering a native image.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
- Returns:
- String for custom fragment prefix
const char* Dali::NativeImage::GetCustomSamplerTypename | ( | ) |
Gets custom sampler type name for rendering a native image.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
- Returns:
- String for custom sampler type name
static NativeImage Dali::NativeImage::New | ( | NativeImageInterface & | nativeImageInterface | ) | [static] |
Creates a new NativeImage, which used native resources.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] nativeImageInterface An reference to the object of the interface implementation
- Returns:
- A handle to a newly allocated object
NativeImage& Dali::NativeImage::operator= | ( | const NativeImage & | rhs | ) |
This assignment operator is required for (smart) pointer semantics.
- Deprecated:
- Deprecated since 4.0, DALi version 1.2.41
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] rhs A reference to the copied handle
- Returns:
- A reference to this