QRhiScissor Class

Specifies a scissor rectangle. More...

Header: #include <QRhiScissor>
qmake: QT += rhi

Public Functions

QRhiScissor()
QRhiScissor(int x, int y, int w, int h)
std::array<int, 4> scissor() const
void setScissor(int x, int y, int w, int h)
uint qHash(const QRhiScissor &v, uint seed = 0)
bool operator!=(const QRhiScissor &a, const QRhiScissor &b)
bool operator==(const QRhiScissor &a, const QRhiScissor &b)

Detailed Description

Specifies a scissor rectangle.

Used with QRhiCommandBuffer::setScissor(). Setting a scissor rectangle is only possible with a QRhiGraphicsPipeline that has QRhiGraphicsPipeline::UsesScissor set.

Note: QRhi assumes OpenGL-style scissor coordinates, meaning x and y are bottom-left.

See also QRhiCommandBuffer::setScissor() and QRhiViewport.

Member Type Documentation

Property Documentation

Member Function Documentation

QRhiScissor::QRhiScissor()

Constructs an empty scissor.

QRhiScissor::QRhiScissor(int x, int y, int w, int h)

Constructs a scissor with the rectangle specified by x, y, w, and h.

Note: x and y are assumed to be the bottom-left position.

std::array<int, 4> QRhiScissor::scissor() const

See also setScissor().

void QRhiScissor::setScissor(int x, int y, int w, int h)

See also scissor().

Member Variable Documentation

Related Non-Members

uint qHash(const QRhiScissor &v, uint seed = 0)

Returns the hash value for v, using seed to seed the calculation.

bool operator!=(const QRhiScissor &a, const QRhiScissor &b)

Returns false if the values in the two QRhiScissor objects a and b are equal; otherwise returns true.

bool operator==(const QRhiScissor &a, const QRhiScissor &b)

Returns true if the values in the two QRhiScissor objects a and b are equal.

Macro Documentation