aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorMelanie2010-10-06 05:45:29 +0100
committerMelanie2010-10-06 05:45:29 +0100
commitca50f6a82cb7c5385ebfa633a5cf1672a6415b95 (patch)
tree795b9d2c93dc2e92bfa7366d1af391bb76d4971d /OpenSim/Region/OptionalModules
parentConvert worldview to GET (diff)
parentAdd and plumb the usetex URL parameter to worldview. Required but not yet (diff)
downloadopensim-SC-ca50f6a82cb7c5385ebfa633a5cf1672a6415b95.zip
opensim-SC-ca50f6a82cb7c5385ebfa633a5cf1672a6415b95.tar.gz
opensim-SC-ca50f6a82cb7c5385ebfa633a5cf1672a6415b95.tar.bz2
opensim-SC-ca50f6a82cb7c5385ebfa633a5cf1672a6415b95.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs4
-rw-r--r--OpenSim/Region/OptionalModules/World/WorldView/WorldViewRequestHandler.cs6
2 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs b/OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs
index 55be9ba..d4b7020 100644
--- a/OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs
+++ b/OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs
@@ -104,13 +104,13 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
104 } 104 }
105 105
106 public byte[] GenerateWorldView(Vector3 pos, Vector3 rot, float fov, 106 public byte[] GenerateWorldView(Vector3 pos, Vector3 rot, float fov,
107 int width, int height) 107 int width, int height, bool usetex)
108 { 108 {
109 if (!m_Enabled) 109 if (!m_Enabled)
110 return new Byte[0]; 110 return new Byte[0];
111 111
112 Bitmap bmp = m_Generator.CreateViewImage(pos, rot, fov, width, 112 Bitmap bmp = m_Generator.CreateViewImage(pos, rot, fov, width,
113 height); 113 height, usetex);
114 114
115 MemoryStream str = new MemoryStream(); 115 MemoryStream str = new MemoryStream();
116 116
diff --git a/OpenSim/Region/OptionalModules/World/WorldView/WorldViewRequestHandler.cs b/OpenSim/Region/OptionalModules/World/WorldView/WorldViewRequestHandler.cs
index bfdcdb4..f47d9c7 100644
--- a/OpenSim/Region/OptionalModules/World/WorldView/WorldViewRequestHandler.cs
+++ b/OpenSim/Region/OptionalModules/World/WorldView/WorldViewRequestHandler.cs
@@ -96,6 +96,7 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
96 float fov; 96 float fov;
97 int width; 97 int width;
98 int height; 98 int height;
99 bool usetex;
99 100
100 if (!request.ContainsKey("posX")) 101 if (!request.ContainsKey("posX"))
101 return new Byte[0]; 102 return new Byte[0];
@@ -115,6 +116,8 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
115 return new Byte[0]; 116 return new Byte[0];
116 if (!request.ContainsKey("height")) 117 if (!request.ContainsKey("height"))
117 return new Byte[0]; 118 return new Byte[0];
119 if (!request.ContainsKey("usetex"))
120 return new Byte[0];
118 121
119 try 122 try
120 { 123 {
@@ -127,6 +130,7 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
127 fov = Convert.ToSingle(request["fov"]); 130 fov = Convert.ToSingle(request["fov"]);
128 width = Convert.ToInt32(request["width"]); 131 width = Convert.ToInt32(request["width"]);
129 height = Convert.ToInt32(request["height"]); 132 height = Convert.ToInt32(request["height"]);
133 usetex = Convert.ToBoolean(request["usetex"]);
130 } 134 }
131 catch 135 catch
132 { 136 {
@@ -137,7 +141,7 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
137 Vector3 rot = new Vector3(rotX, rotY, rotZ); 141 Vector3 rot = new Vector3(rotX, rotY, rotZ);
138 142
139 return m_WorldViewModule.GenerateWorldView(pos, rot, fov, width, 143 return m_WorldViewModule.GenerateWorldView(pos, rot, fov, width,
140 height); 144 height, usetex);
141 } 145 }
142 } 146 }
143} 147}