Nugget
Loading...
Searching...
No Matches
Public Attributes | List of all members
psyqo::Prim::Scissor Struct Reference

A compounded Scissor primitive. More...

#include <psyqo/primitives/control.hh>

Collaboration diagram for psyqo::Prim::Scissor:
Collaboration graph
[legend]

Public Attributes

DrawingAreaStart start = DrawingAreaStart(Vertex{{.x = 0, .y = 0}})
 
DrawingAreaEnd end = DrawingAreaEnd(Vertex{{.x = 1024, .y = 512}})
 
DrawingOffset offset = DrawingOffset(Vertex{{.x = 0, .y = 0}})
 

Detailed Description

A compounded Scissor primitive.

This compounds the necessary primitives to alter the drawing area for all drawing commands. It's meant to be used by the GPU class, but can be used sometimes to clip a different area within the vram.

The default constructor will create a Scissor which will clip over the entire VRAM, effectively disabling scissoring.

Member Data Documentation

◆ end

DrawingAreaEnd psyqo::Prim::Scissor::end = DrawingAreaEnd(Vertex{{.x = 1024, .y = 512}})

◆ offset

DrawingOffset psyqo::Prim::Scissor::offset = DrawingOffset(Vertex{{.x = 0, .y = 0}})

◆ start

DrawingAreaStart psyqo::Prim::Scissor::start = DrawingAreaStart(Vertex{{.x = 0, .y = 0}})

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