public virtual int CreateMesh( out ID2D1Mesh mesh ) { var fp = GetFunctionPointer(14); if (m_CreateMeshFunc == null) { m_CreateMeshFunc = (CreateMeshFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateMeshFunc)); } mesh = new ID2D1Mesh(); return(m_CreateMeshFunc(m_ptr, out mesh.PtrForNew)); }
public virtual void FillMesh( ID2D1Mesh mesh, ID2D1Brush brush ) { var fp = GetFunctionPointer(24); if (m_FillMeshFunc == null) { m_FillMeshFunc = (FillMeshFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(FillMeshFunc)); } m_FillMeshFunc(m_ptr, mesh != null ? mesh.Ptr : IntPtr.Zero, brush != null ? brush.Ptr : IntPtr.Zero); }