[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
0.6.3-post-fixes
Dr Scofield 2009-02-02 13:58:01 +00:00
parent 519818edd8
commit 7ec667d279
1 changed files with 2 additions and 2 deletions

View File

@ -232,8 +232,8 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender
temp = parseIntParam(name); temp = parseIntParam(name);
if (temp != -1) if (temp != -1)
{ {
if (temp > 1028) if (temp > 1024)
temp = 1028; temp = 1024;
if (temp < 128) if (temp < 128)
temp = 128; temp = 128;