Tizen Native API  5.0
Dali::FrameBuffer Class Reference

FrameBuffer is a collection of textures that can be used as the destination for rendering. More...

Inheritance diagram for Dali::FrameBuffer:
Dali::BaseHandle

Classes

struct  Attachment
 The initial attachments to create the FrameBuffer with. More...

Public Member Functions

 FrameBuffer ()
 Default constructor, creates an empty handle.
 ~FrameBuffer ()
 Destructor.
 FrameBuffer (const FrameBuffer &handle)
 Copy constructor, creates a new handle to the same object.
FrameBufferoperator= (const FrameBuffer &handle)
 Assignment operator, changes this handle to point at the same object.
void AttachColorTexture (Texture &texture)
 Attach the base LOD of a 2D texture to the framebuffer for color rendering.
void AttachColorTexture (Texture &texture, uint32_t mipmapLevel, uint32_t layer)
 Attach a texture to the framebuffer for color rendering.
Texture GetColorTexture ()
 Gets the color texture used as output in the FrameBuffer.
 FrameBuffer (Internal::FrameBuffer *pointer)
 The constructor.

Static Public Member Functions

static FrameBuffer New (uint32_t width, uint32_t height, uint32_t attachments)
 Creates a new FrameBuffer object.
static FrameBuffer DownCast (BaseHandle handle)
 Downcasts to a FrameBuffer. If not, the returned handle is left uninitialized.

Detailed Description

FrameBuffer is a collection of textures that can be used as the destination for rendering.

Since:
3.0, DALi version 1.1.43

Constructor & Destructor Documentation

Destructor.

Since:
3.0, DALi version 1.1.43

Copy constructor, creates a new handle to the same object.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleHandle to an object
Dali::FrameBuffer::FrameBuffer ( Internal::FrameBuffer *  pointer) [explicit]

The constructor.

Note:
Not intended for application developers.
Since:
3.0, DALi version 1.1.43
Parameters:
[in]pointerA pointer to a newly allocated FrameBuffer

Member Function Documentation

Attach the base LOD of a 2D texture to the framebuffer for color rendering.

Note:
This causes a color attachment to be added.
Since:
3.0, DALi version 1.1.43
Parameters:
[in]textureThe texture that will be used as output when rendering
Note:
The texture has to have the same size than the FrameBuffer otherwise it won't be attached.
void Dali::FrameBuffer::AttachColorTexture ( Texture texture,
uint32_t  mipmapLevel,
uint32_t  layer 
)

Attach a texture to the framebuffer for color rendering.

Note:
This causes a color attachment to be added.
Since:
3.0, DALi version 1.1.43
Parameters:
[in]textureThe texture that will be used as output when rendering
[in]mipmapLevelThe mipmap of the texture to be attached
[in]layerIndicates which layer of a cube map or array texture to attach. Unused for 2D textures
Note:
The specified texture mipmap has to have the same size than the FrameBuffer otherwise it won't be attached.
static FrameBuffer Dali::FrameBuffer::DownCast ( BaseHandle  handle) [static]

Downcasts to a FrameBuffer. If not, the returned handle is left uninitialized.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleHandle to an object
Returns:
FrameBuffer handle or an uninitialized handle

Gets the color texture used as output in the FrameBuffer.

Since:
3.0, DALi version 1.1.43
Returns:
A handle to the texture used as color output, or an uninitialized handle
static FrameBuffer Dali::FrameBuffer::New ( uint32_t  width,
uint32_t  height,
uint32_t  attachments 
) [static]

Creates a new FrameBuffer object.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]widthThe width of the FrameBuffer
[in]heightThe height of the FrameBuffer
[in]attachmentsThe attachments comprising the format of the FrameBuffer (the type is int to allow multiple bitmasks to be ORd)
Returns:
A handle to a newly allocated FrameBuffer
FrameBuffer& Dali::FrameBuffer::operator= ( const FrameBuffer handle)

Assignment operator, changes this handle to point at the same object.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleHandle to an object
Returns:
Reference to the assigned object