[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.DrawInformation

Class DrawInformation

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

ID2D1DrawInfo

[Guid("693ce632-7f2f-45de-93fe-18d88b37aa21")]
public class DrawInformation : RenderInformation, IDisposable, IUnknown
Inheritance
object
DrawInformation
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

DrawInformation(IntPtr)

Initializes a new instance of the DrawInformation class.

public DrawInformation(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

SetPixelConstantBuffer(DataStream)

Sets the constant buffer data from a DataStream for the Pixel stage.

public void SetPixelConstantBuffer(DataStream dataStream)

Parameters

dataStream DataStream

The DataStream that contains the constant buffer data

SetPixelConstantBuffer<T>(ref T)

Sets the constant buffer data from a struct value for the Pixel Stage.

public void SetPixelConstantBuffer<T>(ref T value) where T : struct

Parameters

value T

Value of the constant buffer

Type Parameters

T

Type of the constant buffer

SetPixelShader(Guid, PixelOptions)

HRESULT ID2D1DrawInfo::SetPixelShader([In] const GUID& shaderId,[In] D2D1_PIXEL_OPTIONS pixelOptions)

public void SetPixelShader(Guid shaderId, PixelOptions pixelOptions)

Parameters

shaderId System.Guid
pixelOptions PixelOptions

SetPixelShaderConstantBuffer(IntPtr, int)

HRESULT ID2D1DrawInfo::SetPixelShaderConstantBuffer([In, Buffer] const void* buffer,[In] unsigned int bufferCount)

public void SetPixelShaderConstantBuffer(IntPtr buffer, int bufferCount)

Parameters

buffer System.IntPtr
bufferCount int

SetResourceTexture(int, ResourceTexture)

HRESULT ID2D1DrawInfo::SetResourceTexture([In] unsigned int textureIndex,[In] ID2D1ResourceTexture* resourceTexture)

public void SetResourceTexture(int textureIndex, ResourceTexture resourceTexture)

Parameters

textureIndex int
resourceTexture ResourceTexture

SetVertexConstantBuffer(DataStream)

Sets the constant buffer data from a DataStream for the Vertex stage.

public void SetVertexConstantBuffer(DataStream dataStream)

Parameters

dataStream DataStream

The DataStream that contains the constant buffer data

SetVertexConstantBuffer<T>(ref T)

Sets the constant buffer data from a struct value for the Vertex Stage.

public void SetVertexConstantBuffer<T>(ref T value) where T : struct

Parameters

value T

Value of the constant buffer

Type Parameters

T

Type of the constant buffer

SetVertexProcessing(VertexBuffer, VertexOptions, BlendDescription?, VertexRange?, Guid?)

HRESULT ID2D1DrawInfo::SetVertexProcessing([In, Optional] ID2D1VertexBuffer* vertexBuffer,[In] D2D1_VERTEX_OPTIONS vertexOptions,[In, Optional] const D2D1_BLEND_DESCRIPTION* blendDescription,[In, Optional] const D2D1_VERTEX_RANGE* vertexRange,[In, Optional] const GUID* vertexShader)

public void SetVertexProcessing(VertexBuffer vertexBuffer, VertexOptions vertexOptions, BlendDescription? blendDescription = null, VertexRange? vertexRange = null, Guid? vertexShader = null)

Parameters

vertexBuffer VertexBuffer
vertexOptions VertexOptions
blendDescription BlendDescription?
vertexRange VertexRange?
vertexShader System.Guid?

SetVertexShaderConstantBuffer(IntPtr, int)

HRESULT ID2D1DrawInfo::SetVertexShaderConstantBuffer([In, Buffer] const void* buffer,[In] unsigned int bufferCount)

public void SetVertexShaderConstantBuffer(IntPtr buffer, int bufferCount)

Parameters

buffer System.IntPtr
bufferCount int

Operators

explicit operator DrawInformation(IntPtr)

Performs an explicit conversion from System.IntPtr to DrawInformation.

public static explicit operator DrawInformation(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

DrawInformation