//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- namespace DarkWynter.Stream.PhysicsGpu { #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; #endregion /// /// ForceMap that simulates wind currents. /// Used in gpu physics. /// public class GpuWindMap { private Texture2D WindMap; // Texture holding "wind" currents /// /// Constructor for windMap. /// public GpuWindMap(){} /// /// Loads the wind map from file. /// /// Path to windMap texture. /// Content manager public void Load(string windMapLocation, ContentManager content) { // Load the ForceMap WindMap = content.Load(windMapLocation); } /// /// Associates windMap with shader variable of same name. /// /// Shader Effect Parameter to save to. public void SetWindMap(EffectParameter windMap) { windMap.SetValue(WindMap); } } }