[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.RasterizerStage

Class RasterizerStage

Namespace
GrapeCity.Documents.DX.Direct3D11
Assembly
GcDocs.DX.Windows.dll

ID3D11DeviceContext

[Guid("c0bfa96c-e089-44fb-8eaf-26f8796190da")]
public class RasterizerStage : CppObject, IDisposable
Inheritance
object
RasterizerStage
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

RasterizerStage(IntPtr)

Initializes a new instance of the RasterizerStage class.

public RasterizerStage(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

GetScissorRectangles()

Get the array of {{scissor rectangles}} bound to the {{rasterizer stage}}.

public RectL[] GetScissorRectangles()

Returns

RectL[]

GetScissorRectangles(RectL[])

Get the array of {{scissor rectangles}} bound to the {{rasterizer stage}}.

public void GetScissorRectangles(RectL[] scissorRectangles)

Parameters

scissorRectangles RectL[]

GetScissorRects(ref int, RectL[])

void ID3D11DeviceContext::RSGetScissorRects([InOut] unsigned int* pNumRects,[Out, Buffer, Optional] RECT* pRects)

public void GetScissorRects(ref int numRectsRef, RectL[] rectsRef)

Parameters

numRectsRef int
rectsRef RectL[]

GetState()

void ID3D11DeviceContext::RSGetState([Out] ID3D11RasterizerState** ppRasterizerState)

public RasterizerState GetState()

Returns

RasterizerState

GetViewports()

Get the array of {{viewports}} bound to the {{rasterizer stage}}

public ViewportF[] GetViewports()

Returns

ViewportF[]

An array of viewports (see ViewportF).

GetViewports(ViewportF[])

Get the array of {{viewports}} bound to the {{rasterizer stage}}

public void GetViewports(ViewportF[] viewports)

Parameters

viewports ViewportF[]

GetViewports(ref int, ViewportF[])

void ID3D11DeviceContext::RSGetViewports([InOut] unsigned int* pNumViewports,[Out, Buffer, Optional] D3D11_VIEWPORT* pViewports)

public void GetViewports(ref int numViewportsRef, ViewportF[] viewportsRef)

Parameters

numViewportsRef int
viewportsRef ViewportF[]

SetScissorRectangle(int, int, int, int)

Binds a single scissor rectangle to the rasterizer stage.

public void SetScissorRectangle(int left, int top, int right, int bottom)

Parameters

left int
top int
right int
bottom int

SetScissorRectangles(params RectL[])

Binds a set of scissor rectangles to the rasterizer stage.

public void SetScissorRectangles(params RectL[] scissorRectangles)

Parameters

scissorRectangles RectL[]

SetScissorRects(int, IntPtr)

void ID3D11DeviceContext::RSSetScissorRects([In] unsigned int NumRects,[In, Buffer, Optional] const void* pRects)

public void SetScissorRects(int numRects, IntPtr rectsRef)

Parameters

numRects int
rectsRef System.IntPtr

SetState(RasterizerState)

void ID3D11DeviceContext::RSSetState([In, Optional] ID3D11RasterizerState* pRasterizerState)

public void SetState(RasterizerState rasterizerStateRef)

Parameters

rasterizerStateRef RasterizerState

SetViewport(ViewportF)

Binds a single viewport to the rasterizer stage.

public void SetViewport(ViewportF viewport)

Parameters

viewport ViewportF

SetViewport(float, float, float, float, float, float)

Binds a single viewport to the rasterizer stage.

public void SetViewport(float x, float y, float width, float height, float minZ = 0, float maxZ = 1)

Parameters

x float
y float
width float
height float
minZ float
maxZ float

SetViewports(ViewportF[], int)

Binds a set of viewports to the rasterizer stage.

public void SetViewports(ViewportF[] viewports, int count = 0)

Parameters

viewports ViewportF[]
count int

SetViewports(int, IntPtr)

void ID3D11DeviceContext::RSSetViewports([In] unsigned int NumViewports,[In, Buffer, Optional] const void* pViewports)

public void SetViewports(int numViewports, IntPtr viewportsRef)

Parameters

numViewports int
viewportsRef System.IntPtr

Operators

explicit operator RasterizerStage(IntPtr)

Performs an explicit conversion from System.IntPtr to RasterizerStage.

public static explicit operator RasterizerStage(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

RasterizerStage