Space Engineers
Public Member Functions | Properties | List of all members
VRageRender.SpriteScissorStack Class Reference

Stores stack of scissor rectangles where top rectangle has already been cut using all the rectangles below it, so that only one rectangle is checked during scissor test. More...

Public Member Functions

void Push (Rectangle scissorRect)
 
void Pop ()
 
RectangleF Peek ()
 
void Cut (ref RectangleF destination, ref RectangleF source)
 Cuts the destination rectangle using top of the scissor stack. Source rectangle is modified using scaled change of destination as well. More...
 

Properties

bool Empty [get]
 

Detailed Description

Stores stack of scissor rectangles where top rectangle has already been cut using all the rectangles below it, so that only one rectangle is checked during scissor test.

Definition at line 16 of file SpriteScissorStack.cs.

Member Function Documentation

void VRageRender.SpriteScissorStack.Cut ( ref RectangleF  destination,
ref RectangleF  source 
)
inline

Cuts the destination rectangle using top of the scissor stack. Source rectangle is modified using scaled change of destination as well.

Definition at line 56 of file SpriteScissorStack.cs.

RectangleF VRageRender.SpriteScissorStack.Peek ( )
inline

Definition at line 41 of file SpriteScissorStack.cs.

void VRageRender.SpriteScissorStack.Pop ( )
inline

Definition at line 35 of file SpriteScissorStack.cs.

void VRageRender.SpriteScissorStack.Push ( Rectangle  scissorRect)
inline

Definition at line 25 of file SpriteScissorStack.cs.

Property Documentation

bool VRageRender.SpriteScissorStack.Empty
get

Definition at line 21 of file SpriteScissorStack.cs.


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