Beispiel #1
0
        /// <summary>
        /// Initializes a new intance of the <see cref="InitSettings"/> class.
        /// </summary>
        unsafe public InitSettings()
        {
            Native native;

            NativeMethods.bgfx_init_ctor(&native);

            Backend         = native.Backend;
            Adapter         = new Adapter((Vendor)native.VendorId, native.DeviceId);
            Debug           = native.Debug != 0;
            Profiling       = native.Profiling != 0;
            Format          = native.Resolution.Format;
            Width           = (int)native.Resolution.Width;
            Height          = (int)native.Resolution.Height;
            ResetFlags      = (ResetFlags)native.Resolution.Flags;
            BackBufferCount = native.Resolution.NumBackBuffers;
            MaxFrameLatency = native.Resolution.MaxFrameLatency;
            PlatformData    = native.PlatformData;
        }
Beispiel #2
0
 public static extern void bgfx_set_platform_data(ref PlatformData data);