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. More... | |
CreateInfo (unsigned int width, unsigned int height, GraphicsFormat format, unsigned int sampleCount) | |
Constructor for Renderbuffer creation parameters. More... | |
CreateInfo (unsigned int width, unsigned int height, GraphicsFormat format) | |
Constructor for Renderbuffer creation parameters. More... | |
Status | validate (Renderer *renderer) const |
Public Attributes | |
unsigned int | width |
Requested width for the Renderbuffer in pixels. More... | |
unsigned int | height |
Requested height for the Renderbuffer in pixels. More... | |
GraphicsFormat | format |
Requested GraphicsFormat for the Renderbuffer. More... | |
unsigned int | sampleCount |
Requested number of samples for the Renderbuffer. More... | |
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. |
unsigned int kanzi::Renderbuffer::CreateInfo::width |
Requested width for the Renderbuffer in pixels.
unsigned int kanzi::Renderbuffer::CreateInfo::height |
Requested height for the Renderbuffer in pixels.
GraphicsFormat kanzi::Renderbuffer::CreateInfo::format |
Requested GraphicsFormat for the Renderbuffer.
unsigned int kanzi::Renderbuffer::CreateInfo::sampleCount |
Requested number of samples for the Renderbuffer.