Renderbuffer creation parameters. More...
#include <kanzi/core.ui/platform/graphics_backend/gl/renderbuffer.hpp>
Public Types | |
enum | Status { StatusUnsupportedFormat , StatusInvalidMinimumSize , StatusInvalidMaximumSize , StatusUnsupportedSampleCount , StatusValid } |
Status of Renderbuffer creation parameters, returned as result of validate() More... | |
Public Member Functions | |
CreateInfo () | |
Constructor for Renderbuffer creation parameters. | |
CreateInfo (unsigned int width, unsigned int height, GraphicsFormat format) | |
Constructor for Renderbuffer creation parameters. | |
CreateInfo (unsigned int width, unsigned int height, GraphicsFormat format, unsigned int sampleCount) | |
Constructor for Renderbuffer creation parameters. | |
Status | validate (Renderer *renderer) const |
Perform validation of renderbuffer creation parameters. | |
Public Attributes | |
GraphicsFormat | format |
Requested GraphicsFormat for the Renderbuffer. | |
unsigned int | height |
Requested height for the Renderbuffer in pixels. | |
unsigned int | sampleCount |
Requested number of samples for the Renderbuffer. | |
unsigned int | width |
Requested width for the Renderbuffer in pixels. | |
Renderbuffer creation parameters.
Status of Renderbuffer creation parameters, returned as result of validate()
Enumerator | |
---|---|
StatusUnsupportedFormat | Renderbuffer creation parameters use GraphicsFormat that is not supported by the graphics device. |
StatusInvalidMinimumSize | Renderbuffer creation parameters request Renderbuffer with zero width and/or height. Minimum size of Renderbuffers is 1 by 1. |
StatusInvalidMaximumSize | Renderbuffer creation parameters request renderbuffer size that exceeds size supported by the graphics device. |
StatusUnsupportedSampleCount | Renderbuffer creation parameters request number of samples that exceeds number of samples supported by the graphics device. |
StatusValid | Rebderbuffer creation parameters are valid and can be used to create a Renderbuffer. |
|
explicit |
Constructor for Renderbuffer creation parameters.
|
explicit |
Constructor for Renderbuffer creation parameters.
width | Width of renderbuffer in pixels. |
height | Height of renderbuffer in pixels. |
format | Requested GraphicsFormat for the Renderbuffer. |
sampleCount | Number of multisample samples. |
|
explicit |
Constructor for Renderbuffer creation parameters.
width | Width of renderbuffer in pixels. |
height | Height of renderbuffer in pixels. |
format | Requested GraphicsFormat for the Renderbuffer. |
Perform validation of renderbuffer creation parameters.
You can call validate() to see if renderbuffer creation parameters are valid before you pass the creation parameters to Renderbuffer::create().
renderer | Renderer to validate with. |
Requested width for the Renderbuffer in pixels.
Requested height for the Renderbuffer in pixels.
GraphicsFormat kanzi::Renderbuffer::CreateInfo::format |
Requested GraphicsFormat for the Renderbuffer.
Requested number of samples for the Renderbuffer.