Ejemplo n.º 1
0
 public PlanePrimitive(Vector3 position, Vector2 size, Color color)
 {
     _position = position;
     _size = size;
     _color = color;
     UpdateVertices();
     _coveringType = PrimitiveCoveringType.Color;
     ObjectHasMoved += new ObjectMoved(UpdateVerticesFromEvents);
     ObjectHasRotated += new ObjectHasRotatedHandler(UpdateVerticesFromEvents);
 }
Ejemplo n.º 2
0
 public PlanePrimitive(Vector3 position, Vector2 size)
 {
     _position = position;
     _size = size;
     _rotation = Vector3.Zero;
     _vertexBuffer = null;
     UpdateVertices();
     _coveringType = PrimitiveCoveringType.None;
     ObjectHasMoved += new ObjectMoved(UpdateVerticesFromEvents);
     ObjectHasRotated += new ObjectHasRotatedHandler(UpdateVerticesFromEvents);
 }