Example #1
0
        public void Load(IntPtr handle)
        {
            BrowserInterop.vtsGetTextureResolution(handle, out width, out height, out components);
            Util.CheckError();
            type = (GpuType)BrowserInterop.vtsGetTextureType(handle);
            Util.CheckError();
            IntPtr bufPtr;
            uint   bufSize;

            BrowserInterop.vtsGetTextureBuffer(handle, out bufPtr, out bufSize);
            Util.CheckError();
            data = new byte[bufSize];
            Marshal.Copy(bufPtr, data, 0, (int)bufSize);
        }