Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GraphicsResizeExtensions.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Paradox.Games;
4 using SiliconStudio.Core;
5 
6 namespace SiliconStudio.Paradox.Effects
7 {
8  public static class GraphicsResizeExtensions
9  {
10  /// <summary>
11  /// Sets a resizable resource for the specified key.
12  /// </summary>
13  /// <typeparam name="T">Type must be a <see cref="IReferencable"/></typeparam>
14  /// <param name="parameterCollection">The parameter collection.</param>
15  /// <param name="context">The context.</param>
16  /// <param name="key">The key.</param>
17  /// <param name="resourceValue">The resource value.</param>
18  public static void SetWithResize<T>(this ParameterCollection parameterCollection, GraphicsResizeContext context, ParameterKey<T> key, T resourceValue) where T : IReferencable
19  {
20  context.SetWithResize(parameterCollection, key, resourceValue);
21  }
22  }
23 }
Keep track of actions to execute when GraphicsDevice is resized.
Base interface for all referencable objects.
Definition: IReferencable.cs:8
Key of an gereric effect parameter.
A container to handle a hierarchical collection of effect variables.