Exemplo n.º 1
0
 /// <summary>
 /// Commits each RenderMode bit to the specified RenderStateGuardian.
 /// Child RenderState classes can derive this to publish their extension bits.</summary>
 /// <param name="rsg">RenderStateGuardian to publish to</param>
 public virtual void CommitAllBitsToGuardian(RenderStateGuardian rsg)
 {
     for (int i = 0; (1 << i) <= (int)RenderMode.Max; i++)
     {
         rsg.SetRenderStateByIndex(i, this);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Commits each RenderMode bit to the specified RenderStateGuardian.
 /// Child RenderState classes can derive this to publish their extension bits.</summary>
 /// <param name="rsg">RenderStateGuardian to publish to</param>
 public virtual void CommitAllBitsToGuardian(RenderStateGuardian rsg)
 {
     for (int i = 0; (1<<i) <= (int)RenderMode.Max; i++)
         rsg.SetRenderStateByIndex(i, this);
 }