From 5d613231920dd513dfa8c5328c7ce1bfd59a359b Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 5 Oct 2010 23:49:21 +0100 Subject: Add the view generating method to the image generator interface --- OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs | 5 +++++ OpenSim/Region/Framework/Interfaces/ITerrain.cs | 2 ++ 2 files changed, 7 insertions(+) diff --git a/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs b/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs index 9e6e366..8408bf9 100644 --- a/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs +++ b/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs @@ -545,5 +545,10 @@ namespace OpenSim.Region.CoreModules.World.LegacyMap return returnpt; } + + public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height) + { + return null; + } } } diff --git a/OpenSim/Region/Framework/Interfaces/ITerrain.cs b/OpenSim/Region/Framework/Interfaces/ITerrain.cs index 8aacb35..38cf020 100644 --- a/OpenSim/Region/Framework/Interfaces/ITerrain.cs +++ b/OpenSim/Region/Framework/Interfaces/ITerrain.cs @@ -26,6 +26,7 @@ */ using OpenSim.Framework; +using OpenMetaverse; namespace OpenSim.Region.Framework.Interfaces { @@ -74,6 +75,7 @@ namespace OpenSim.Region.Framework.Interfaces public interface IMapImageGenerator { System.Drawing.Bitmap CreateMapTile(); + System.Drawing.Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height); byte[] WriteJpeg2000Image(); } } -- cgit v1.1