PageRenderTime 21ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Utilities/Graphics/ShaderFeatures/UI2DShaderFeature.cs

#
C# | 88 lines | 52 code | 7 blank | 29 comment | 0 complexity | 6303d3a344de5975d334cf3f9298a2d6 MD5 | raw file
Possible License(s): Apache-2.0
  1. using System.Collections.Generic;
  2. using System.IO;
  3. namespace Delta.Utilities.Graphics.ShaderFeatures
  4. {
  5. /// <summary>
  6. /// UI2D shader feature
  7. /// </summary>
  8. public class UI2DShaderFeature : IShaderFeature
  9. {
  10. #region ShaderFeature (Public)
  11. /// <summary>
  12. /// Which shader feature flag is this ShaderFeature class using?
  13. /// Important for loading this file via ShaderData.LoadShaderFeature.
  14. /// Each flag should obviously only have one class for it!
  15. /// </summary>
  16. public ShaderFeatureFlags ShaderFeature
  17. {
  18. get
  19. {
  20. return ShaderFeatureFlags.UI2D;
  21. }
  22. }
  23. #endregion
  24. #region RequiredShaderFeatures (Public)
  25. /// <summary>
  26. /// Which shader feature flags are required for this ShaderFeature.
  27. /// Very important for creating of a new ShaderFeature.
  28. /// </summary>
  29. public ShaderFeatureFlags RequiredShaderFeatures
  30. {
  31. get
  32. {
  33. return ShaderFeatureFlags.Basic;
  34. }
  35. }
  36. #endregion
  37. #region Parameters (Public)
  38. /// <summary>
  39. /// Parameters as a dictionary, will be generated on the fly when
  40. /// requested.
  41. /// </summary>
  42. public Dictionary<string, object> Parameters
  43. {
  44. get
  45. {
  46. return new Dictionary<string, object>();
  47. }
  48. }
  49. #endregion
  50. #region Constructors
  51. /// <summary>
  52. /// Create basic shader feature
  53. /// </summary>
  54. public UI2DShaderFeature()
  55. {
  56. }
  57. /// <summary>
  58. /// Create basic shader feature and load automatically
  59. /// the ShaderFeatures from a binary data stream.
  60. /// </summary>
  61. public UI2DShaderFeature(BinaryReader reader)
  62. {
  63. Load(reader);
  64. }
  65. #endregion
  66. #region ISaveLoadBinary Members
  67. /// <summary>
  68. /// Load this ShaderFeature from a binary data stream.
  69. /// </summary>
  70. public void Load(BinaryReader reader)
  71. {
  72. }
  73. /// <summary>
  74. /// Save this ShaderFeature to a binary data stream.
  75. /// </summary>
  76. public void Save(BinaryWriter writer)
  77. {
  78. }
  79. #endregion
  80. }
  81. }