Inheritance: ModelColoring
Beispiel #1
0
 public GameObject(Vector3 position = default (Vector3), Angles3 rotation = default (Angles3), Vector3 scale = default (Vector3),
                    bool isVisible = true, bool isSelectable = false, bool isMovable = false)
 {
     Position = position;
     Scale = scale.Length () != 0 ? scale : Vector3.One;
     IsVisible = isVisible;
     IsSelectable = isSelectable;
     IsMovable = isMovable;
     Bounds = new BoundingSphere [0];
     UniqueKey = GetType ().Name;
     IsLightingEnabled = true;
     IsSkyObject = false;
     Coloring = new SingleColor (Color.Transparent);
 }
Beispiel #2
0
 public GameObject(Vector3 position = default(Vector3), Angles3 rotation = default(Angles3), Vector3 scale = default(Vector3),
                   bool isVisible   = true, bool isSelectable = false, bool isMovable = false)
 {
     Position          = position;
     Scale             = scale.Length() != 0 ? scale : Vector3.One;
     IsVisible         = isVisible;
     IsSelectable      = isSelectable;
     IsMovable         = isMovable;
     Bounds            = new BoundingSphere [0];
     UniqueKey         = GetType().Name;
     IsLightingEnabled = true;
     IsSkyObject       = false;
     Coloring          = new SingleColor(Color.Transparent);
 }
Beispiel #3
0
 public Sun(IScreen screen) : base(screen: screen)
 {
     Coloring = new SingleColor(Color.Yellow);
     effect   = new BasicEffect(screen.GraphicsDevice);
 }
Beispiel #4
0
 public Sun(IScreen screen)
     : base(screen: screen)
 {
     Coloring = new SingleColor (Color.Yellow);
     effect = new BasicEffect (screen.GraphicsDevice);
 }
Beispiel #5
0
 public DebugModel(IScreen screen)
     : base(screen: screen)
 {
     Scale = new Vector3 (5f,5f,5f);
     Coloring = new SingleColor (Color.White);
 }