/// <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) { OffsetTransform = Matrix.Identity; Entity = entity; Model = model; }
/// <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) { }
/// <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; }
protected SelfDrawingModelDisplayObject(ModelDrawer modelDrawer) { ModelDrawer = modelDrawer; }
/// <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) { }
/// <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) { }
protected ModelDisplayObjectBase(ModelDrawer drawer) { Drawer = drawer; BatchInformation = new BatchInformation(); TextureIndex = Random.Next(8); }
/// <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) { }
/// <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) { }
/// <summary> /// Constructs a new /// </summary> /// <param name="drawer">Drawer to use.</param> /// <param name="entity">Entity to draw.</param> public DisplayEntity(ModelDrawer drawer, Entity entity) : base(drawer, entity) { }