C# 클래스 Nez.ScissorStack

A stack of Rectangle objects to be used for clipping via GraphicsDevice.ScissorRectangle. When a new Rectangle is pushed onto the stack, it will be merged with the current top of stack.The minimum area of overlap is then set as the real top of the stack.
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
calculateScissors ( Camera camera, Matrix batchTransform, Rectangle scissor ) : Rectangle

Calculates a screen space scissor rectangle using the given Camera. If the Camera is null than the scissor will be calculated only with the batchTransform

calculateScissors ( Camera camera, Matrix2D batchTransform, Rectangle scissor ) : Rectangle

Calculates a screen space scissor rectangle using the given Camera. If the Camera is null than the scissor will be calculated only with the batchTransform

popScissors ( ) : Rectangle

Pops the current scissor rectangle from the stack and sets the new scissor area to the new top of stack rectangle. Any drawing should be flushed before popping scissors.

pushScissors ( Rectangle scissor ) : bool

메소드 상세

calculateScissors() 공개 정적인 메소드

Calculates a screen space scissor rectangle using the given Camera. If the Camera is null than the scissor will be calculated only with the batchTransform
public static calculateScissors ( Camera camera, Matrix batchTransform, Rectangle scissor ) : Rectangle
camera Camera Camera.
batchTransform Matrix Batch transform.
scissor Microsoft.Xna.Framework.Rectangle Area.
리턴 Microsoft.Xna.Framework.Rectangle

calculateScissors() 공개 정적인 메소드

Calculates a screen space scissor rectangle using the given Camera. If the Camera is null than the scissor will be calculated only with the batchTransform
public static calculateScissors ( Camera camera, Matrix2D batchTransform, Rectangle scissor ) : Rectangle
camera Camera Camera.
batchTransform Matrix2D Batch transform.
scissor Microsoft.Xna.Framework.Rectangle Area.
리턴 Microsoft.Xna.Framework.Rectangle

popScissors() 공개 정적인 메소드

Pops the current scissor rectangle from the stack and sets the new scissor area to the new top of stack rectangle. Any drawing should be flushed before popping scissors.
public static popScissors ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

pushScissors() 공개 정적인 메소드

public static pushScissors ( Rectangle scissor ) : bool
scissor Microsoft.Xna.Framework.Rectangle
리턴 bool