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