Exemplo n.º 1
0
 public void  Initialize(Engine.GraphicFactory factory, Engine.GraphicInfo ginfo)
 {
     if (effect == null)
     {
         effect = factory.GetBasicEffect();
         effect.VertexColorEnabled = true;
         effect.LightingEnabled = false;
         effect.TextureEnabled = false;                
     }        
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes
 /// </summary>
 /// <param name="factory">The factory.</param>
 /// <param name="ginfo">The ginfo.</param>
 public void  Initialize(Engine.GraphicFactory factory, Engine.GraphicInfo ginfo)
 {            
     sphereModel = new SimpleModel(factory, "Dsphere", true);
     if (effect == null)
     {
         effect = factory.GetBasicEffect();
         effect.TextureEnabled = false;
         effect.VertexColorEnabled = false;
         effect.LightingEnabled = lightingEnabled;
         WireFrameEnabled = true;
     }
 }