Esempio n. 1
0
 public static void SetGraphicsState(
     int numberTexUnits       = 0,
     bool enableAlphaTesting  = false,
     bool enableAlphaBlending = true,
     bool enableDepthTesting  = true,
     bool enableDepthWriting  = false)
 {
     GraphicsAPI.SetGraphicsState(
         0,
         numberTexUnits,
         0,
         enableAlphaTesting.ToInt(),
         enableAlphaBlending.ToInt(),
         enableDepthTesting.ToInt(),
         enableDepthWriting.ToInt());
 }
Esempio n. 2
0
 public static void SetGraphicsState(
     bool enableFog,
     int numberTexUnits,
     bool enableLighting,
     bool enableAlphaTesting,
     bool enableAlphaBlending,
     bool enableDepthTesting,
     bool enableDepthWriting)
 {
     GraphicsAPI.SetGraphicsState(
         enableFog.ToInt(),
         numberTexUnits,
         enableLighting.ToInt(),
         enableAlphaTesting.ToInt(),
         enableAlphaBlending.ToInt(),
         enableDepthTesting.ToInt(),
         enableDepthWriting.ToInt());
 }