aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorDr Scofield2009-02-02 13:58:01 +0000
committerDr Scofield2009-02-02 13:58:01 +0000
commit7ec667d2791af819abb54da4e04ef7dd8b1e13a1 (patch)
treed3561e2bcde270609a0c64f5019c5b94514b1a09 /OpenSim/Region/Environment
parent* Changing the ode collision filter to 'off by default' instead of 'on by def... (diff)
downloadopensim-SC_OLD-7ec667d2791af819abb54da4e04ef7dd8b1e13a1.zip
opensim-SC_OLD-7ec667d2791af819abb54da4e04ef7dd8b1e13a1.tar.gz
opensim-SC_OLD-7ec667d2791af819abb54da4e04ef7dd8b1e13a1.tar.bz2
opensim-SC_OLD-7ec667d2791af819abb54da4e04ef7dd8b1e13a1.tar.xz
[patching previous patch and also taking the chance of fixing the
previous commit message] This patch reimplements the Draw method in the VectorRenderModule which is used to create dynamic textures. The previous version was limited to creating square dynamic textures, it also didnt allow for dynamically loading an image containing transparency except at 256x256. The extraParams string in such functions as osSetDynamicTextureData can now be passed a comma seperated string of name value pairs which set the width,height and alpha value of dynamic textures. e.g. "height:512,width:2048,alpha:255" Backward compatibility is still preserved so passing the old params of either a string integer "256" "512" will still work in the same fashion as will passing "setAlpha" on its own
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs
index cf83cc0..ec1ee3f 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs
@@ -232,8 +232,8 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender
232 temp = parseIntParam(name); 232 temp = parseIntParam(name);
233 if (temp != -1) 233 if (temp != -1)
234 { 234 {
235 if (temp > 1028) 235 if (temp > 1024)
236 temp = 1028; 236 temp = 1024;
237 237
238 if (temp < 128) 238 if (temp < 128)
239 temp = 128; 239 temp = 128;