namespace DarkWynterEngine.GameObjects
{
#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using ObjectLib;
using Globals;
#endregion
///
/// A Billboard Sprite places a Texture in 3D space that is always oriented towards the user.
/// This makes an effective tool to do lightweight props such as brush, clouds, smoke, or fire.
/// GameObjects cann add Billboards to ObjectLibrary's BillboardList in the Draw_Billboards method.
///
public class Billboard : GameObject
{
///
/// Offset Position of the Sprite
///
public Vector3 offset;
///
/// Width of the Billboard
///
public float width;
///
/// Height of the Billboard
///
public float height;
///
/// Create a Billboard Object with it's own texture
///
/// Location of the Billboard in 3D space.
/// Position relative to CurrentPosition, used to modulate motion.
/// Width of the Billboard.
/// Height of the Billboard.
/// Texture to use with this Billboard.
public Billboard(Vector3 Position, Vector3 Offset, float Width, float Height, Texture2D Image)
{
mass.currentPosition = Position;
offset = Offset;
textureList.Add(Image);
width = Width;
height = Height;
}
///
/// Sets the current position of the billboard
///
/// The new Vector3 position of the billboard
public void SetPosition(Vector3 position)
{
mass.currentPosition = position;
}
}
}