/// <summary>
 /// Initializes the plugin for the specified Ultraviolet context.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 /// <param name="factory">The Ultraviolet factory.</param>
 public virtual void Initialize(UltravioletContext uv, UltravioletFactory factory)
 {
 }
Beispiel #2
0
 /// <summary>
 /// Handles the Ultraviolet context's Updating event.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 /// <param name="time">Time elapsed since the last call to <see cref="UltravioletContext.Update(UltravioletTime)"/>.</param>
 private void uv_Updating(UltravioletContext uv, UltravioletTime time)
 {
     OnUpdating(time);
 }
Beispiel #3
0
 /// <summary>
 /// Handles the Ultraviolet context's <see cref="UltravioletContext.WindowDrawn"/> event.
 /// </summary>
 private void uv_WindowDrawn(UltravioletContext uv, UltravioletTime time, IUltravioletWindow window)
 {
     OnWindowDrawn(time, window);
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DummyUltravioletAudio"/> class.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 public DummyUltravioletAudio(UltravioletContext uv)
     : base(uv)
 {
 }
Beispiel #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UltravioletResource"/> class.
        /// </summary>
        /// <param name="uv">The Ultraviolet context.</param>
        protected UltravioletResource(UltravioletContext uv)
        {
            Contract.Require(uv, nameof(uv));

            this.uv = uv;
        }
Beispiel #6
0
 /// <summary>
 /// Handles the Ultraviolet context's Shutdown event.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 private void uv_Shutdown(UltravioletContext uv)
 {
     OnShutdown();
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DummyUltravioletGraphics"/> class.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 public DummyUltravioletGraphics(UltravioletContext uv)
     : base(uv)
 {
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Cursor"/> class.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 public Cursor(UltravioletContext uv)
     : base(uv)
 {
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="UltravioletSynchronizationContext"/> class.
        /// </summary>
        /// <param name="uv">The Ultraviolet context.</param>
        internal UltravioletSynchronizationContext(UltravioletContext uv)
        {
            Contract.Require(uv, nameof(uv));

            this.Ultraviolet = uv;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CursorCollection"/> class.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 internal CursorCollection(UltravioletContext uv)
     : base(uv)
 {
 }
Beispiel #11
0
        /// <summary>
        /// Creates a new instance of the <see cref="SwapChainManager"/> class.
        /// </summary>
        /// <returns>The <see cref="SwapChainManager"/> instance that was created.</returns>
        public static SwapChainManager Create()
        {
            var uv = UltravioletContext.DemandCurrent();

            return(uv.GetFactoryMethod <SwapChainManagerFactory>()(uv));
        }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SwapChainManager"/> class.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 public SwapChainManager(UltravioletContext uv)
     : base(uv)
 {
 }
 /// <summary>
 /// Initializes the specified factory.
 /// </summary>
 /// <param name="owner">The Ultraviolet context that owns the initializer.</param>
 /// <param name="factory">The <see cref="UltravioletFactory"/> to initialize.</param>
 public void Initialize(UltravioletContext owner, UltravioletFactory factory)
 {
     factory.SetFactoryMethod(owner.IsRunningInServiceMode ?
                              new SpriteBatchFactory((uv) => null) :
                              new SpriteBatchFactory((uv) => new SpriteBatch(uv)));
 }