Tizen Native API
5.0
|
FrameBuffer is a collection of textures that can be used as the destination for rendering. More...
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. | |
FrameBuffer & | operator= (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. |
FrameBuffer is a collection of textures that can be used as the destination for rendering.
Destructor.
Dali::FrameBuffer::FrameBuffer | ( | const FrameBuffer & | handle | ) |
Copy constructor, creates a new handle to the same object.
[in] | handle | Handle to an object |
Dali::FrameBuffer::FrameBuffer | ( | Internal::FrameBuffer * | pointer | ) | [explicit] |
The constructor.
[in] | pointer | A pointer to a newly allocated FrameBuffer |
void Dali::FrameBuffer::AttachColorTexture | ( | Texture & | texture | ) |
Attach the base LOD of a 2D texture to the framebuffer for color rendering.
[in] | texture | The texture that will be used as output when rendering |
void Dali::FrameBuffer::AttachColorTexture | ( | Texture & | texture, |
uint32_t | mipmapLevel, | ||
uint32_t | layer | ||
) |
Attach a texture to the framebuffer for color rendering.
[in] | texture | The texture that will be used as output when rendering |
[in] | mipmapLevel | The mipmap of the texture to be attached |
[in] | layer | Indicates which layer of a cube map or array texture to attach. Unused for 2D textures |
static FrameBuffer Dali::FrameBuffer::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts to a FrameBuffer. If not, the returned handle is left uninitialized.
[in] | handle | Handle to an object |
Gets the color texture used as output in the FrameBuffer.
static FrameBuffer Dali::FrameBuffer::New | ( | uint32_t | width, |
uint32_t | height, | ||
uint32_t | attachments | ||
) | [static] |
Creates a new FrameBuffer object.
[in] | width | The width of the FrameBuffer |
[in] | height | The height of the FrameBuffer |
[in] | attachments | The attachments comprising the format of the FrameBuffer (the type is int to allow multiple bitmasks to be ORd) |
FrameBuffer& Dali::FrameBuffer::operator= | ( | const FrameBuffer & | handle | ) |
Assignment operator, changes this handle to point at the same object.
[in] | handle | Handle to an object |