LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::Scissor Struct Reference

Scissor dimensions. More...

#include <PipelineStateFlags.h>

Public Member Functions

 Scissor ()=default
 Scissor (std::int32_t x, std::int32_t y, std::int32_t width, std::int32_t height)
 Scissor constructor with parameters for all attributes.
 Scissor (const Offset2D &offset, const Extent2D &extent)
 Scissor constructor with offset and extent parameters.

Public Attributes

std::int32_t x = 0
 Left-top X coordinate.
std::int32_t y = 0
 Left-top Y coordinate.
std::int32_t width = 0
 Right-bottom width.
std::int32_t height = 0
 Right-bottom height.

Detailed Description

Scissor dimensions.

Remarks
A scissor is in screen coordinates where the origin is in the left-top corner.
See also
CommandBuffer::SetScissor
CommandBuffer::SetScissors
GraphicsPipelineDescriptor::scissors

Constructor & Destructor Documentation

◆ Scissor() [1/3]

LLGL::Scissor::Scissor ( )
default

◆ Scissor() [2/3]

LLGL::Scissor::Scissor ( std::int32_t x,
std::int32_t y,
std::int32_t width,
std::int32_t height )
inline

Scissor constructor with parameters for all attributes.

◆ Scissor() [3/3]

LLGL::Scissor::Scissor ( const Offset2D & offset,
const Extent2D & extent )
inline

Scissor constructor with offset and extent parameters.

Member Data Documentation

◆ height

std::int32_t LLGL::Scissor::height = 0

Right-bottom height.

◆ width

std::int32_t LLGL::Scissor::width = 0

Right-bottom width.

◆ x

std::int32_t LLGL::Scissor::x = 0

Left-top X coordinate.

◆ y

std::int32_t LLGL::Scissor::y = 0

Left-top Y coordinate.


The documentation for this struct was generated from the following file: