aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs
diff options
context:
space:
mode:
authorMW2008-03-08 20:54:34 +0000
committerMW2008-03-08 20:54:34 +0000
commitd340820826635069813e088f6c17266fbeadd393 (patch)
tree7d1a3b53a267dbd2e4b1f95d79ba3639639c0558 /OpenSim/Region/Environment/Modules/LoadImageURLModule.cs
parent* Implemented 'Revert' channel in Terrain Module. (diff)
downloadopensim-SC_OLD-d340820826635069813e088f6c17266fbeadd393.zip
opensim-SC_OLD-d340820826635069813e088f6c17266fbeadd393.tar.gz
opensim-SC_OLD-d340820826635069813e088f6c17266fbeadd393.tar.bz2
opensim-SC_OLD-d340820826635069813e088f6c17266fbeadd393.tar.xz
Added Frist basic version on the VectorRenderModule, that allows scripts to do some basic drawing onto textures. Currently the method the scripts have to use is most likely not the most user friendly, but this should improve soon. And hope to allow SVG files (either loaded from a web site, or even script created) to be used. I will add a page to the wiki tomorrow, until then http://www.pastebin.ca/934425 is a example c# script that can be used to get a bit of a idea.
Also added osSetDynamicTextureDataBlend and osSetDynamicTextureURLBlend that will allow the various textures to be blended together, but currently there are still a few bugs in them. So not ready for use yet.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/LoadImageURLModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/LoadImageURLModule.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs b/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs
index 0548b9d..1bfc647 100644
--- a/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs
+++ b/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs
@@ -38,6 +38,7 @@ using OpenSim.Region.Environment.Scenes;
38 38
39namespace OpenSim.Region.Environment.Modules 39namespace OpenSim.Region.Environment.Modules
40{ 40{
41
41 public class LoadImageURLModule : IRegionModule, IDynamicTextureRender 42 public class LoadImageURLModule : IRegionModule, IDynamicTextureRender
42 { 43 {
43 private string m_name = "LoadImageURL"; 44 private string m_name = "LoadImageURL";
@@ -55,7 +56,10 @@ namespace OpenSim.Region.Environment.Modules
55 public void PostInitialise() 56 public void PostInitialise()
56 { 57 {
57 m_textureManager = m_scene.RequestModuleInterface<IDynamicTextureManager>(); 58 m_textureManager = m_scene.RequestModuleInterface<IDynamicTextureManager>();
58 m_textureManager.RegisterRender(GetContentType(), this); 59 if (m_textureManager != null)
60 {
61 m_textureManager.RegisterRender(GetContentType(), this);
62 }
59 } 63 }
60 64
61 public void Close() 65 public void Close()