Dali 3D User Interface Engine
Functions
Dali::Internal::TextureFactory Namespace Reference

Functions

Internal::TextureNewBitmapTexture (Integration::Bitmap *const bitmap, Context &context, ResourcePolicy::Discardable discardPolicy)
 Creates a new texture object from a Bitmap. More...
 
Internal::TextureNewBitmapTexture (unsigned int width, unsigned int height, Pixel::Format pixelFormat, bool clearPixels, Context &context, ResourcePolicy::Discardable discardPolicy)
 Creates a new bitmap texture object of the given dimensions. More...
 
Internal::TextureNewNativeImageTexture (NativeImageInterface &nativeImage, Context &context)
 Creates a texture object from a native image (eg. More...
 
Internal::TextureNewFrameBufferTexture (unsigned int width, unsigned int height, Pixel::Format pixelFormat, RenderBuffer::Format bufferFormat, Context &context)
 Creates a new texture object. More...
 
Internal::TextureNewFrameBufferTexture (NativeImageInterfacePtr nativeImage, Context &context)
 Creates a new texture object. More...
 

Function Documentation

Internal::Texture * Dali::Internal::TextureFactory::NewBitmapTexture ( Integration::Bitmap *const  bitmap,
Context &  context,
ResourcePolicy::Discardable  discardPolicy 
)

Creates a new texture object from a Bitmap.

Parameters
[in]bitmapThe Bitmap
[in]contextThe GL context
Returns
A newly allocated texture

Definition at line 39 of file texture-factory.cpp.

References DALI_ASSERT_DEBUG, Dali::Integration::Bitmap::GetPackedPixelsProfile(), and Dali::Internal::Texture::Init().

Referenced by Dali::Internal::SceneGraph::TextureCache::AddBitmap(), and Dali::Internal::SceneGraph::TextureCache::CreateTexture().

Here is the call graph for this function:

Here is the caller graph for this function:

Internal::Texture * Dali::Internal::TextureFactory::NewBitmapTexture ( unsigned int  width,
unsigned int  height,
Pixel::Format  pixelFormat,
bool  clearPixels,
Context &  context,
ResourcePolicy::Discardable  discardPolicy 
)

Creates a new bitmap texture object of the given dimensions.

Parameters
[in]widthThe width (pixels)
[in]heightThe height (pixels)
[in]pixelFormatThe pixel format
[in]clearPixelsTrue if the pixel data should be cleared first
[in]contextThe GL context

Definition at line 67 of file texture-factory.cpp.

Internal::Texture * Dali::Internal::TextureFactory::NewFrameBufferTexture ( unsigned int  width,
unsigned int  height,
Pixel::Format  pixelFormat,
RenderBuffer::Format  bufferFormat,
Context &  context 
)

Creates a new texture object.

Parameters
[in]widthThe width (pixels)
[in]heightThe height (pixels)
[in]contextThe GL context

Definition at line 91 of file texture-factory.cpp.

References Dali::Internal::FrameBufferTexture::Init().

Referenced by Dali::Internal::SceneGraph::TextureCache::AddFrameBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

Internal::Texture * Dali::Internal::TextureFactory::NewFrameBufferTexture ( NativeImageInterfacePtr  nativeImage,
Context &  context 
)

Creates a new texture object.

Parameters
[in]widthThe width (pixels)
[in]heightThe height (pixels)
[in]contextThe GL context

Definition at line 106 of file texture-factory.cpp.

References Dali::Internal::FrameBufferTexture::Init().

Here is the call graph for this function:

Internal::Texture * Dali::Internal::TextureFactory::NewNativeImageTexture ( NativeImageInterface &  nativeImage,
Context &  context 
)

Creates a texture object from a native image (eg.

: EGLImage).

Parameters
[in]nativeImageThe native image to load
[in]contextThe GL context
Returns
A newly allocated texture

Definition at line 80 of file texture-factory.cpp.

References Dali::Internal::NativeTexture::Init().

Referenced by Dali::Internal::SceneGraph::TextureCache::AddNativeImage().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali