Example #1
0
        public Direct3DSurface9 GetSurfaceLevel(uint Level)
        {
            ComInterface.IDirect3DSurface9 surface = null;
            Marshal.ThrowExceptionForHR(this.getSurfaceLevel(this.comObject, Level, out surface));

            return(new Direct3DSurface9(surface));
        }
        public Direct3DSurface9 CreateRenderTarget(uint Width, uint Height, int Format, int MultiSample, uint MultisampleQuality, int Lockable, ref IntPtr pSharedHandle)
        {
            ComInterface.IDirect3DSurface9 obj = null;
            int result = this.createRenderTarget(this.comObject, Width, Height, Format, MultiSample, MultisampleQuality, Lockable, out obj, ref pSharedHandle);

            Marshal.ThrowExceptionForHR(result);

            return(new Direct3DSurface9(obj));
        }
Example #3
0
        public Direct3DSurface9 GetSurfaceLevel(uint level)
        {
            ComInterface.IDirect3DSurface9 obj = null;
            int result = this.getSurfaceLevel(this.comObject, level, out obj);

            Marshal.ThrowExceptionForHR(result);

            return(new Direct3DSurface9(obj, IntPtr.Zero));
        }
        private void Release()
        {
            if (this.comObject != null)
            {
                Marshal.Release(this.native);
                this.native = IntPtr.Zero;

                Marshal.ReleaseComObject(this.comObject);
                this.comObject = null;
            }
        }
Example #5
0
        private void Release()
        {
            if (this.comObject != null)
            {
                Marshal.Release(this.native);
                this.native = IntPtr.Zero;

                Marshal.ReleaseComObject(this.comObject);
                this.comObject = null;
            }
        }
Example #6
0
        private void Release()
        {
            if (_comObject != null)
            {
                Marshal.Release(_native);
                _native = IntPtr.Zero;

                Marshal.ReleaseComObject(_comObject);
                _comObject = null;
            }
        }
 internal Direct3DSurface9(ComInterface.IDirect3DSurface9 obj)
 {
     this.comObject = obj;
     this.native    = Marshal.GetIUnknownForObject(this.comObject);
 }
Example #8
0
 internal Direct3DSurface9(ComInterface.IDirect3DSurface9 obj)
 {
     this.comObject = obj;
     this.native = Marshal.GetIUnknownForObject(this.comObject);
 }
Example #9
0
 internal Direct3DSurface9(ComInterface.IDirect3DSurface9 obj, IntPtr sharedhandle)
 {
     this.comObject      = obj;
     this.m_sharedhandle = sharedhandle;
     this.native         = Marshal.GetIUnknownForObject(this.comObject);
 }
Example #10
0
 internal Direct3DSurface9(ComInterface.IDirect3DSurface9 obj)
 {
     _comObject = obj;
     _native    = Marshal.GetIUnknownForObject(_comObject);
 }