mirror of
https://github.com/opensim/opensim.git
synced 2026-05-26 03:45:36 +08:00
Added AddDynamicTextureData() to DynamicTextureModule, so that a script (or another module even) can create a dynamic texture by passing a string with the data in, rather than a url. This could be used for anything from a script passing a basic text string (and having it rendered to a texture) or the script building its own html document.
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.IO;
|
|
using libsecondlife;
|
|
|
|
namespace OpenSim.Region.Environment.Interfaces
|
|
{
|
|
public interface IDynamicTextureManager
|
|
{
|
|
void RegisterRender(string handleType, IDynamicTextureRender render);
|
|
void ReturnData(LLUUID id, byte[] data);
|
|
LLUUID AddDynamicTextureURL(LLUUID simID, LLUUID primID, string contentType, string url, string extraParams, int updateTimer);
|
|
LLUUID AddDynamicTextureData(LLUUID simID, LLUUID primID, string contentType, string data, string extraParams, int updateTimer);
|
|
}
|
|
|
|
public interface IDynamicTextureRender
|
|
{
|
|
string GetName();
|
|
string GetContentType();
|
|
bool SupportsAsynchronous();
|
|
byte[] ConvertUrl(string url, string extraParams);
|
|
byte[] ConvertStream(Stream data, string extraParams);
|
|
bool AsyncConvertUrl(LLUUID id, string url, string extraParams);
|
|
bool AsyncConvertData(LLUUID id, string bodyData, string extraParams);
|
|
}
|
|
}
|