diff options
added some os helper functions for the texture drawing module. see http://opensimulator.org/wiki/OSSL_TextureDrawing for function prototypes and example script. Will expand that page later.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs index 05a1a1d..957f55c 100644 --- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs | |||
@@ -1902,6 +1902,66 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1902 | m_LSL_Functions.osSetPrimFloatOnWater(floatYN); | 1902 | m_LSL_Functions.osSetPrimFloatOnWater(floatYN); |
1903 | } | 1903 | } |
1904 | 1904 | ||
1905 | //Texture Draw functions | ||
1906 | |||
1907 | public string osMovePen(string drawList, int x, int y) | ||
1908 | { | ||
1909 | return m_LSL_Functions.osMovePen(drawList, x, y); | ||
1910 | } | ||
1911 | |||
1912 | public string osDrawLine(string drawList, int startX, int startY, int endX, int endY) | ||
1913 | { | ||
1914 | return m_LSL_Functions.osDrawLine(drawList, startX, startY, endX, endY); | ||
1915 | } | ||
1916 | |||
1917 | public string osDrawLine(string drawList, int endX, int endY) | ||
1918 | { | ||
1919 | return m_LSL_Functions.osDrawLine(drawList, endX, endY); | ||
1920 | } | ||
1921 | |||
1922 | public string osDrawText(string drawList, string text) | ||
1923 | { | ||
1924 | return m_LSL_Functions.osDrawText(drawList, text); | ||
1925 | } | ||
1926 | |||
1927 | public string osDrawEllipse(string drawList, int width, int height) | ||
1928 | { | ||
1929 | return m_LSL_Functions.osDrawEllipse(drawList, width, height); | ||
1930 | } | ||
1931 | |||
1932 | public string osDrawRectangle(string drawList, int width, int height) | ||
1933 | { | ||
1934 | return osDrawRectangle(drawList, width, height); | ||
1935 | } | ||
1936 | |||
1937 | public string osDrawFilledRectangle(string drawList, int width, int height) | ||
1938 | { | ||
1939 | return osDrawFilledRectangle(drawList, width, height); | ||
1940 | } | ||
1941 | |||
1942 | public string osSetFontSize(string drawList, int fontSize) | ||
1943 | { | ||
1944 | return m_LSL_Functions.osSetFontSize(drawList, fontSize); | ||
1945 | } | ||
1946 | |||
1947 | public string osSetPenSize(string drawList, int penSize) | ||
1948 | { | ||
1949 | return m_LSL_Functions.osSetPenSize(drawList, penSize); | ||
1950 | } | ||
1951 | |||
1952 | public string osSetPenColour(string drawList, string colour) | ||
1953 | { | ||
1954 | return m_LSL_Functions.osSetPenColour(drawList, colour); | ||
1955 | } | ||
1956 | |||
1957 | public string osDrawImage(string drawList, int width, int height, string imageUrl) | ||
1958 | { | ||
1959 | return m_LSL_Functions.osDrawImage(drawList, width, height, imageUrl); | ||
1960 | } | ||
1961 | |||
1962 | |||
1963 | // | ||
1964 | |||
1905 | public double llList2Float(LSL_Types.list src, int index) | 1965 | public double llList2Float(LSL_Types.list src, int index) |
1906 | { | 1966 | { |
1907 | return m_LSL_Functions.llList2Float(src, index); | 1967 | return m_LSL_Functions.llList2Float(src, index); |