Exemplo n.º 1
0
            private static IMarshaler MarshalInner(SceneMetaData obj, bool marshalOut)
            {
                IMarshaler inner = ((MapMetaData)obj).GetMarshaler(marshalOut);

                obj.scene.pMap = inner.Native;
                return(inner);
            }
Exemplo n.º 2
0
        public SceneMetaData GetUserPixels(UserID id)
        {
            SceneMetaData smd = new SceneMetaData();

            using (IMarshaler marsh = smd.GetMarshaler(true))
            {
                int status = SafeNativeMethods.xnGetUserPixels(this.InternalObject, id, marsh.Native);
                WrapperUtils.ThrowOnError(status);
            }

            return(smd);
        }
Exemplo n.º 3
0
 public SceneMetaDataMarshaler(SceneMetaData obj, bool marshalOut) :
     base(obj.scene, marshalOut,
          MarshalInner(obj, marshalOut))
 {
 }