Example #1
0
 /// <summary>
 /// Constructs a new display model.
 /// </summary>
 /// <param name="entity">Entity to follow.</param>
 /// <param name="model">Model to draw on the entity.</param>
 /// <param name="modelDrawer">Model drawer to use.</param>
 public DisplayEntityModel(Entity entity, Model model, ModelDrawer modelDrawer)
     : base(modelDrawer)
 {
     LocalTransform = Matrix.Identity;
     Entity         = entity;
     Model          = model;
 }
Example #2
0
 /// <summary>
 /// Creates the display object for the entity.
 /// </summary>
 /// <param name="drawer">Drawer managing this display object.</param>
 /// <param name="displayedObject">Entity to draw.</param>
 public DisplayTriangleMesh(ModelDrawer drawer, TriangleMesh displayedObject)
     : base(drawer, displayedObject)
 {
 }
Example #3
0
 protected ModelDisplayObject(ModelDrawer drawer)
 {
     Drawer = drawer;
     BatchInformation = new BatchInformation();
     TextureIndex = Random.Next(8);
 }
Example #4
0
 /// <summary>
 /// Constructs a new display model.
 /// </summary>
 /// <param name="model">Model to draw on the entity.</param>
 /// <param name="modelDrawer">Model drawer to use.</param>
 public DisplayModel(Model model, ModelDrawer modelDrawer)
     : base(modelDrawer)
 {
     Model = model;
 }
Example #5
0
 /// <summary>
 /// Constructs a new display entity.
 /// </summary>
 /// <param name="drawer">Drawer to use.</param>
 /// <param name="entityCollidable">EntityCollidable to draw.</param>
 public DisplayEntityCollidable(ModelDrawer drawer, EntityCollidable entityCollidable)
     : base(drawer, entityCollidable)
 {
 }
Example #6
0
 /// <summary>
 /// Creates the display object for the entity.
 /// </summary>
 /// <param name="drawer">Drawer managing this display object.</param>
 /// <param name="displayedObject">Entity to draw.</param>
 public DisplayFluid(ModelDrawer drawer, FluidVolume displayedObject)
     : base(drawer, displayedObject)
 {
 }
Example #7
0
 protected SelfDrawingModelDisplayObject(ModelDrawer modelDrawer)
 {
     ModelDrawer = modelDrawer;
 }
 protected SelfDrawingModelDisplayObject(ModelDrawer modelDrawer)
 {
     ModelDrawer = modelDrawer;
 }
Example #9
0
 /// <summary>
 /// Creates the display object for the entity.
 /// </summary>
 /// <param name="drawer">Drawer managing this display object.</param>
 /// <param name="displayedObject">Entity to draw.</param>
 public DisplayInstancedMesh(ModelDrawer drawer, InstancedMesh displayedObject)
     : base(drawer, displayedObject)
 {
 }
Example #10
0
 /// <summary>
 /// Creates the display object for the object.
 /// </summary>
 /// <param name="drawer">Drawer managing this display object.</param>
 /// <param name="displayedObject">Object to draw.</param>
 public DisplayStaticMesh(ModelDrawer drawer, StaticMesh displayedObject)
     : base(drawer, displayedObject)
 {
 }
Example #11
0
 /// <summary>
 /// Creates the display object for the entity.
 /// </summary>
 /// <param name="drawer">Drawer managing this display object.</param>
 /// <param name="displayedObject">Entity to draw.</param>
 public DisplayTerrain(ModelDrawer drawer, Terrain displayedObject)
     : base(drawer, displayedObject)
 {
 }
Example #12
0
 protected ModelDisplayObject(ModelDrawer drawer)
 {
     Drawer           = drawer;
     BatchInformation = new BatchInformation();
     TextureIndex     = Random.Next(8);
 }