public virtual void PushLayer( ref D2D1_LAYER_PARAMETERS1 layerParameters, ID2D1Layer layer ) { var fp = GetFunctionPointer(86); if (m_PushLayerFunc == null) { m_PushLayerFunc = (PushLayerFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(PushLayerFunc)); } m_PushLayerFunc(m_ptr, ref layerParameters, layer != null ? layer.Ptr : IntPtr.Zero); }
public virtual int CreateLayer( ref D2D_SIZE_F size, out ID2D1Layer layer ) { var fp = GetFunctionPointer(13); if (m_CreateLayerFunc == null) { m_CreateLayerFunc = (CreateLayerFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateLayerFunc)); } layer = new ID2D1Layer(); return(m_CreateLayerFunc(m_ptr, ref size, out layer.PtrForNew)); }