Louvre
v2.13.0-1
C++ library for Wayland compositors
|
An output framebuffer. More...
Public Member Functions | |
Float32 | scale () const noexcept override |
Gets the scale by which the framebuffer dimensions must be interpreted. More... | |
const LSize & | sizeB () const noexcept override |
Gets the size of the framebuffer in buffer coordinates. More... | |
const LRect & | rect () const noexcept override |
Gets the position and size of the framebuffer in surface coordinates. More... | |
GLuint | id () const noexcept override |
Gets the OpenGL framebuffer ID. More... | |
Int32 | bufferAge () const noexcept override |
Gets the current buffer age. More... | |
Int32 | buffersCount () const noexcept override |
Gets the number of internal framebuffers. More... | |
Int32 | currentBufferIndex () const noexcept override |
Gets the index of the current internal framebuffer. More... | |
LTexture * | texture (Int32 index=0) const noexcept override |
Gets the OpenGL texture ID of a specific framebuffer index. More... | |
void | setFramebufferDamage (const LRegion *damage) noexcept override |
Set the damaged region. More... | |
LTransform | transform () const noexcept override |
Gets the framebuffer transform. More... | |
Public Member Functions inherited from LFramebuffer | |
Type | type () const noexcept |
Gets the type of LFramebuffer. More... | |
Public Member Functions inherited from LObject | |
LObject (const LObject &) noexcept | |
Copy constructor. More... | |
LObject & | operator= (const LObject &) noexcept |
Assignment operator (each object has its own individual LWeak reference count). More... | |
void | setUserData (UIntPtr data) const noexcept |
Store an unsigned integer value/pointer. More... | |
UIntPtr | userData () const noexcept |
Retrieves the stored unsigned integer value/pointer. More... | |
Additional Inherited Members | |
Public Types inherited from LFramebuffer | |
enum | Type |
Types of framebuffer. More... | |
Protected Member Functions inherited from LObject | |
LObject () noexcept=default | |
Constructor of the LObject class. More... | |
virtual | ~LObject () noexcept |
Destructor of the LObject class. More... | |
void | notifyDestruction () noexcept |
Notifies the object destruction. More... | |
An output framebuffer.
An LOutputFramebuffer is a specific type of framebuffer used by an LOutput and managed by the graphic backend.
It's advisable to use the interface provided by LOutput instead of directly accessing the methods associated with this class.
|
overridevirtualnoexcept |
Gets the scale by which the framebuffer dimensions must be interpreted.
This method must return the scale factor used to interpret the dimensions of the framebuffer.
For example, HiDPI pixmaps/displays may have a scale of 2, whereas low DPI pixmaps/displays may have a scale of 1.
Implements LFramebuffer.
|
overridevirtualnoexcept |
Gets the size of the framebuffer in buffer coordinates.
This method must return the size of the framebuffer in buffer coordinates.
Implements LFramebuffer.
|
overridevirtualnoexcept |
Gets the position and size of the framebuffer in surface coordinates.
This method must return the position and size of the framebuffer in surface coordinates.
Implements LFramebuffer.
|
overridevirtualnoexcept |
Gets the OpenGL framebuffer ID.
This method must return the current OpenGL framebuffer ID associated with the instance.
Implements LFramebuffer.
|
overridevirtualnoexcept |
Gets the current buffer age.
Reimplemented from LFramebuffer.
|
overridevirtualnoexcept |
Gets the number of internal framebuffers.
This method is used in implementations like LOutputFramebuffer, which may contain more than one internal framebuffer associated with an LFramebuffer, for example, when double or triple buffering is used.
Implements LFramebuffer.
|
overridevirtualnoexcept |
Gets the index of the current internal framebuffer.
This method must return the index of the current internal framebuffer (where the rendered content will be stored).
Implements LFramebuffer.
Gets the OpenGL texture ID of a specific framebuffer index.
This method must return the OpenGL texture ID associated with the specified framebuffer index or 0 if not available.
index | The index of the framebuffer. |
Implements LFramebuffer.
|
overridevirtualnoexcept |
Set the damaged region.
This method sets the region in surface coordinates that indicates the parts of the framebuffer that have changed since the last painting was performed.
damage | A pointer to the LRegion object representing the changed region. |
Implements LFramebuffer.
|
overridevirtualnoexcept |
Gets the framebuffer transform.
Implements LFramebuffer.