You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1450 lines
67 KiB
HTML
1450 lines
67 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.5"/>
|
|
<title>Otter: Otter.Shader Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(initResizable);
|
|
$(window).load(resizeHeight);
|
|
</script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="otterlogosmall.png"/></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">Otter
|
|
 <span id="projectnumber">0.9.8.91</span>
|
|
</div>
|
|
<div id="projectbrief">2d Game Development Framework based on SFML.Net</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.5 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Packages</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){initNavTree('class_otter_1_1_shader.html','');});
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Properties</a></div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="class_otter_1_1_shader-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Otter.Shader Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western European (Windows) Codepage 1252 when editing shaders! More details here: <a href="http://blog.pixelingene.com/2008/07/file-encodings-matter-when-writing-pixel-shaders/">http://blog.pixelingene.com/2008/07/file-encodings-matter-when-writing-pixel-shaders/</a>
|
|
<a href="class_otter_1_1_shader.html#details">More...</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:aba8f06b482106667fb6486eecb9c80b0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#aba8f06b482106667fb6486eecb9c80b0">Shader</a> (string vertexFile, string fragmentFile)</td></tr>
|
|
<tr class="memdesc:aba8f06b482106667fb6486eecb9c80b0"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a> using a file as the source for the vertex and fragment shader. <a href="#aba8f06b482106667fb6486eecb9c80b0">More...</a><br/></td></tr>
|
|
<tr class="separator:aba8f06b482106667fb6486eecb9c80b0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afa01b49aa51d1af9ae780def7f60d84b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#afa01b49aa51d1af9ae780def7f60d84b">Shader</a> (Stream vertexStream, Stream fragmentStream)</td></tr>
|
|
<tr class="memdesc:afa01b49aa51d1af9ae780def7f60d84b"><td class="mdescLeft"> </td><td class="mdescRight">Create a <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a> using a stream as the source of the vertex and fragment shader. <a href="#afa01b49aa51d1af9ae780def7f60d84b">More...</a><br/></td></tr>
|
|
<tr class="separator:afa01b49aa51d1af9ae780def7f60d84b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9779d1ae7263b641c6e3bde26de9429a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a9779d1ae7263b641c6e3bde26de9429a">Shader</a> (ShaderType shaderType, Stream source)</td></tr>
|
|
<tr class="memdesc:a9779d1ae7263b641c6e3bde26de9429a"><td class="mdescLeft"> </td><td class="mdescRight">Create a shader using a stream as the source and a ShaderType parameter. <a href="#a9779d1ae7263b641c6e3bde26de9429a">More...</a><br/></td></tr>
|
|
<tr class="separator:a9779d1ae7263b641c6e3bde26de9429a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa26e4a8fea88361e19cdd97dfcff8529"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#aa26e4a8fea88361e19cdd97dfcff8529">Shader</a> (string source)</td></tr>
|
|
<tr class="memdesc:aa26e4a8fea88361e19cdd97dfcff8529"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a> using a file path source, and auto detects which type of shader it is. If the file path contains ".frag" or ".fs" it is assumed to be a fragment shader. <a href="#aa26e4a8fea88361e19cdd97dfcff8529">More...</a><br/></td></tr>
|
|
<tr class="separator:aa26e4a8fea88361e19cdd97dfcff8529"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac1937a15e867cb7edc20b88db535b082"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#ac1937a15e867cb7edc20b88db535b082">Shader</a> (<a class="el" href="class_otter_1_1_shader.html">Shader</a> copy)</td></tr>
|
|
<tr class="memdesc:ac1937a15e867cb7edc20b88db535b082"><td class="mdescLeft"> </td><td class="mdescRight">Creates a shader using a copy of another shader. <a href="#ac1937a15e867cb7edc20b88db535b082">More...</a><br/></td></tr>
|
|
<tr class="separator:ac1937a15e867cb7edc20b88db535b082"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0a2c043fb9337c771f91c4048c1a562f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a0a2c043fb9337c771f91c4048c1a562f">Shader</a> (ShaderType shaderType, string source)</td></tr>
|
|
<tr class="memdesc:a0a2c043fb9337c771f91c4048c1a562f"><td class="mdescLeft"> </td><td class="mdescRight">Creates a shader using a file path and a ShaderType parameter. <a href="#a0a2c043fb9337c771f91c4048c1a562f">More...</a><br/></td></tr>
|
|
<tr class="separator:a0a2c043fb9337c771f91c4048c1a562f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae74e436b4c8c54e7a9a22c279e4d3379"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#ae74e436b4c8c54e7a9a22c279e4d3379">SetParameter</a> (string name, <a class="el" href="class_otter_1_1_color.html">Color</a> color)</td></tr>
|
|
<tr class="memdesc:ae74e436b4c8c54e7a9a22c279e4d3379"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#ae74e436b4c8c54e7a9a22c279e4d3379">More...</a><br/></td></tr>
|
|
<tr class="separator:ae74e436b4c8c54e7a9a22c279e4d3379"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acac713d4ebf0e853a0b01a2137801c88"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#acac713d4ebf0e853a0b01a2137801c88">SetParameter</a> (Enum name, <a class="el" href="class_otter_1_1_color.html">Color</a> color)</td></tr>
|
|
<tr class="memdesc:acac713d4ebf0e853a0b01a2137801c88"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#acac713d4ebf0e853a0b01a2137801c88">More...</a><br/></td></tr>
|
|
<tr class="separator:acac713d4ebf0e853a0b01a2137801c88"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5df2308b5faf4153fa119e592c671c00"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a5df2308b5faf4153fa119e592c671c00">SetParameter</a> (string name, float x)</td></tr>
|
|
<tr class="memdesc:a5df2308b5faf4153fa119e592c671c00"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a5df2308b5faf4153fa119e592c671c00">More...</a><br/></td></tr>
|
|
<tr class="separator:a5df2308b5faf4153fa119e592c671c00"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8f5cde534fcbf11a5a83ad255b9234f3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a8f5cde534fcbf11a5a83ad255b9234f3">SetParameter</a> (Enum name, float x)</td></tr>
|
|
<tr class="memdesc:a8f5cde534fcbf11a5a83ad255b9234f3"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a8f5cde534fcbf11a5a83ad255b9234f3">More...</a><br/></td></tr>
|
|
<tr class="separator:a8f5cde534fcbf11a5a83ad255b9234f3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4c0adbe482b546a297e94bff2da0e08b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a4c0adbe482b546a297e94bff2da0e08b">SetParameter</a> (string name, float x, float y)</td></tr>
|
|
<tr class="memdesc:a4c0adbe482b546a297e94bff2da0e08b"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a4c0adbe482b546a297e94bff2da0e08b">More...</a><br/></td></tr>
|
|
<tr class="separator:a4c0adbe482b546a297e94bff2da0e08b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa3bfcee5942dd7675470ac3371aa1098"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#aa3bfcee5942dd7675470ac3371aa1098">SetParameter</a> (Enum name, float x, float y)</td></tr>
|
|
<tr class="memdesc:aa3bfcee5942dd7675470ac3371aa1098"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#aa3bfcee5942dd7675470ac3371aa1098">More...</a><br/></td></tr>
|
|
<tr class="separator:aa3bfcee5942dd7675470ac3371aa1098"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af1bc62b7cdf64ef5ef8967e4ae506733"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#af1bc62b7cdf64ef5ef8967e4ae506733">SetParameter</a> (string name, <a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> xy)</td></tr>
|
|
<tr class="memdesc:af1bc62b7cdf64ef5ef8967e4ae506733"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#af1bc62b7cdf64ef5ef8967e4ae506733">More...</a><br/></td></tr>
|
|
<tr class="separator:af1bc62b7cdf64ef5ef8967e4ae506733"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a13d6ca6b8b0c75b1399384ebb41901ef"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a13d6ca6b8b0c75b1399384ebb41901ef">SetParameter</a> (Enum name, <a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> xy)</td></tr>
|
|
<tr class="memdesc:a13d6ca6b8b0c75b1399384ebb41901ef"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a13d6ca6b8b0c75b1399384ebb41901ef">More...</a><br/></td></tr>
|
|
<tr class="separator:a13d6ca6b8b0c75b1399384ebb41901ef"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae262832a6e6ff87a2fe7a8ae7a07f5e7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#ae262832a6e6ff87a2fe7a8ae7a07f5e7">SetParameter</a> (string name, <a class="el" href="struct_otter_1_1_vector3.html">Vector3</a> xyz)</td></tr>
|
|
<tr class="memdesc:ae262832a6e6ff87a2fe7a8ae7a07f5e7"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#ae262832a6e6ff87a2fe7a8ae7a07f5e7">More...</a><br/></td></tr>
|
|
<tr class="separator:ae262832a6e6ff87a2fe7a8ae7a07f5e7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0ff896b1720e49ba828d3e66ac2c7670"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a0ff896b1720e49ba828d3e66ac2c7670">SetParameter</a> (Enum name, <a class="el" href="struct_otter_1_1_vector3.html">Vector3</a> xyz)</td></tr>
|
|
<tr class="memdesc:a0ff896b1720e49ba828d3e66ac2c7670"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a0ff896b1720e49ba828d3e66ac2c7670">More...</a><br/></td></tr>
|
|
<tr class="separator:a0ff896b1720e49ba828d3e66ac2c7670"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2ce15fd0791e2e899f4e5f9410eca420"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a2ce15fd0791e2e899f4e5f9410eca420">SetParameter</a> (string name, <a class="el" href="struct_otter_1_1_vector4.html">Vector4</a> xyzw)</td></tr>
|
|
<tr class="memdesc:a2ce15fd0791e2e899f4e5f9410eca420"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a2ce15fd0791e2e899f4e5f9410eca420">More...</a><br/></td></tr>
|
|
<tr class="separator:a2ce15fd0791e2e899f4e5f9410eca420"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abf76e14df61a5dc6ed6e884595ab2463"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#abf76e14df61a5dc6ed6e884595ab2463">SetParameter</a> (Enum name, <a class="el" href="struct_otter_1_1_vector4.html">Vector4</a> xyzw)</td></tr>
|
|
<tr class="memdesc:abf76e14df61a5dc6ed6e884595ab2463"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#abf76e14df61a5dc6ed6e884595ab2463">More...</a><br/></td></tr>
|
|
<tr class="separator:abf76e14df61a5dc6ed6e884595ab2463"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9f6a5d8fad5ea152076b95a63901b054"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a9f6a5d8fad5ea152076b95a63901b054">SetParameter</a> (string name, float x, float y, float z)</td></tr>
|
|
<tr class="memdesc:a9f6a5d8fad5ea152076b95a63901b054"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a9f6a5d8fad5ea152076b95a63901b054">More...</a><br/></td></tr>
|
|
<tr class="separator:a9f6a5d8fad5ea152076b95a63901b054"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3a9c6d00f3253f28918cc0507d8616cd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a3a9c6d00f3253f28918cc0507d8616cd">SetParameter</a> (Enum name, float x, float y, float z)</td></tr>
|
|
<tr class="memdesc:a3a9c6d00f3253f28918cc0507d8616cd"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a3a9c6d00f3253f28918cc0507d8616cd">More...</a><br/></td></tr>
|
|
<tr class="separator:a3a9c6d00f3253f28918cc0507d8616cd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0ff4703651b9461dacbbc848175ac3f1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a0ff4703651b9461dacbbc848175ac3f1">SetParameter</a> (string name, float x, float y, float z, float w)</td></tr>
|
|
<tr class="memdesc:a0ff4703651b9461dacbbc848175ac3f1"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a0ff4703651b9461dacbbc848175ac3f1">More...</a><br/></td></tr>
|
|
<tr class="separator:a0ff4703651b9461dacbbc848175ac3f1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0188bc49d802f834adfc4bee636e211e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a0188bc49d802f834adfc4bee636e211e">SetParameter</a> (Enum name, float x, float y, float z, float w)</td></tr>
|
|
<tr class="memdesc:a0188bc49d802f834adfc4bee636e211e"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a0188bc49d802f834adfc4bee636e211e">More...</a><br/></td></tr>
|
|
<tr class="separator:a0188bc49d802f834adfc4bee636e211e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adaffc587dd2ceb36598119b61ece2f9a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#adaffc587dd2ceb36598119b61ece2f9a">SetParameter</a> (string name, <a class="el" href="class_otter_1_1_texture.html">Texture</a> texture)</td></tr>
|
|
<tr class="memdesc:adaffc587dd2ceb36598119b61ece2f9a"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#adaffc587dd2ceb36598119b61ece2f9a">More...</a><br/></td></tr>
|
|
<tr class="separator:adaffc587dd2ceb36598119b61ece2f9a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2fde56e773cd73aca503787301f40cd6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a2fde56e773cd73aca503787301f40cd6">SetParameter</a> (Enum name, <a class="el" href="class_otter_1_1_texture.html">Texture</a> texture)</td></tr>
|
|
<tr class="memdesc:a2fde56e773cd73aca503787301f40cd6"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a2fde56e773cd73aca503787301f40cd6">More...</a><br/></td></tr>
|
|
<tr class="separator:a2fde56e773cd73aca503787301f40cd6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a23bd1d28626ad13976a46378af383b23"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a23bd1d28626ad13976a46378af383b23">SetParameter</a> (string name, string textureSource)</td></tr>
|
|
<tr class="memdesc:a23bd1d28626ad13976a46378af383b23"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a23bd1d28626ad13976a46378af383b23">More...</a><br/></td></tr>
|
|
<tr class="separator:a23bd1d28626ad13976a46378af383b23"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac672031348ecdd3ae4b755c7b694ef47"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#ac672031348ecdd3ae4b755c7b694ef47">SetParameter</a> (Enum name, string textureSource)</td></tr>
|
|
<tr class="memdesc:ac672031348ecdd3ae4b755c7b694ef47"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#ac672031348ecdd3ae4b755c7b694ef47">More...</a><br/></td></tr>
|
|
<tr class="separator:ac672031348ecdd3ae4b755c7b694ef47"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3998c14c8eb327aca8cf9c61c10f3158"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a3998c14c8eb327aca8cf9c61c10f3158">SetParameter</a> (string name, <a class="el" href="struct_otter_1_1_matrix.html">Matrix</a> matrix)</td></tr>
|
|
<tr class="memdesc:a3998c14c8eb327aca8cf9c61c10f3158"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#a3998c14c8eb327aca8cf9c61c10f3158">More...</a><br/></td></tr>
|
|
<tr class="separator:a3998c14c8eb327aca8cf9c61c10f3158"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adaf6f8dcde78afe785189c55428c3b32"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#adaf6f8dcde78afe785189c55428c3b32">SetParameter</a> (Enum name, <a class="el" href="struct_otter_1_1_matrix.html">Matrix</a> matrix)</td></tr>
|
|
<tr class="memdesc:adaf6f8dcde78afe785189c55428c3b32"><td class="mdescLeft"> </td><td class="mdescRight">Set a parameter on the shader. <a href="#adaf6f8dcde78afe785189c55428c3b32">More...</a><br/></td></tr>
|
|
<tr class="separator:adaf6f8dcde78afe785189c55428c3b32"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a9b4cb4538e1af1be3a10ac26b7d08e21"><td class="memItemLeft" align="right" valign="top">static SFML.Graphics.Shader </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a9b4cb4538e1af1be3a10ac26b7d08e21">FromString</a> (string vertexShader, string fragmentShader)</td></tr>
|
|
<tr class="memdesc:a9b4cb4538e1af1be3a10ac26b7d08e21"><td class="mdescLeft"> </td><td class="mdescRight">Load both the vertex and fragment shaders from source codes in memory <a href="#a9b4cb4538e1af1be3a10ac26b7d08e21">More...</a><br/></td></tr>
|
|
<tr class="separator:a9b4cb4538e1af1be3a10ac26b7d08e21"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a78d1b9995b691f088e5f78cb59177fc1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_otter_1_1_shader.html">Shader</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#a78d1b9995b691f088e5f78cb59177fc1">FromString</a> (ShaderType shaderType, string shader)</td></tr>
|
|
<tr class="memdesc:a78d1b9995b691f088e5f78cb59177fc1"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a> using source code in memory <a href="#a78d1b9995b691f088e5f78cb59177fc1">More...</a><br/></td></tr>
|
|
<tr class="separator:a78d1b9995b691f088e5f78cb59177fc1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa308a43c40de5ba48b15ce30b7e46d29"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#aa308a43c40de5ba48b15ce30b7e46d29">AddParameter</a> (Enum name, string nameInShader)</td></tr>
|
|
<tr class="memdesc:aa308a43c40de5ba48b15ce30b7e46d29"><td class="mdescLeft"> </td><td class="mdescRight">Store a shader parameter name by an Enum value. After storing a parameter this way you can use SetParameter on shader instances with the Enum value and it will retrieve the parameter name string. <a href="#aa308a43c40de5ba48b15ce30b7e46d29">More...</a><br/></td></tr>
|
|
<tr class="separator:aa308a43c40de5ba48b15ce30b7e46d29"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adaf7f08615e2baafc7d044afcb70e157"><td class="memItemLeft" align="right" valign="top">static string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_shader.html#adaf7f08615e2baafc7d044afcb70e157">Parameter</a> (Enum name)</td></tr>
|
|
<tr class="memdesc:adaf7f08615e2baafc7d044afcb70e157"><td class="mdescLeft"> </td><td class="mdescRight">Get the parameter string stored with the Enum key. <a href="#adaf7f08615e2baafc7d044afcb70e157">More...</a><br/></td></tr>
|
|
<tr class="separator:adaf7f08615e2baafc7d044afcb70e157"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western European (Windows) Codepage 1252 when editing shaders! More details here: <a href="http://blog.pixelingene.com/2008/07/file-encodings-matter-when-writing-pixel-shaders/">http://blog.pixelingene.com/2008/07/file-encodings-matter-when-writing-pixel-shaders/</a> </p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="aba8f06b482106667fb6486eecb9c80b0"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Otter.Shader.Shader </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>vertexFile</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>fragmentFile</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a> using a file as the source for the vertex and fragment shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">vertexFile</td><td>The file path to the vertex shader.</td></tr>
|
|
<tr><td class="paramname">fragmentFile</td><td>The file path to the fragment shader.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="afa01b49aa51d1af9ae780def7f60d84b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Otter.Shader.Shader </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Stream </td>
|
|
<td class="paramname"><em>vertexStream</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Stream </td>
|
|
<td class="paramname"><em>fragmentStream</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create a <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a> using a stream as the source of the vertex and fragment shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">vertexStream</td><td>The stream for the vertex shader.</td></tr>
|
|
<tr><td class="paramname">fragmentStream</td><td>The stream for the fragment shader.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9779d1ae7263b641c6e3bde26de9429a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Otter.Shader.Shader </td>
|
|
<td>(</td>
|
|
<td class="paramtype">ShaderType </td>
|
|
<td class="paramname"><em>shaderType</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Stream </td>
|
|
<td class="paramname"><em>source</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create a shader using a stream as the source and a ShaderType parameter. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">shaderType</td><td>The shader type (fragment or vertex)</td></tr>
|
|
<tr><td class="paramname">source</td><td>The stream for the shader.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa26e4a8fea88361e19cdd97dfcff8529"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Otter.Shader.Shader </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>source</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a> using a file path source, and auto detects which type of shader it is. If the file path contains ".frag" or ".fs" it is assumed to be a fragment shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">source</td><td>The file path.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac1937a15e867cb7edc20b88db535b082"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Otter.Shader.Shader </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="class_otter_1_1_shader.html">Shader</a> </td>
|
|
<td class="paramname"><em>copy</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a shader using a copy of another shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">copy</td><td>The shader to copy.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0a2c043fb9337c771f91c4048c1a562f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Otter.Shader.Shader </td>
|
|
<td>(</td>
|
|
<td class="paramtype">ShaderType </td>
|
|
<td class="paramname"><em>shaderType</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>source</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a shader using a file path and a ShaderType parameter. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">shaderType</td><td>The shader type (fragment or vertex)</td></tr>
|
|
<tr><td class="paramname">source</td><td>The file path.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a class="anchor" id="aa308a43c40de5ba48b15ce30b7e46d29"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void Otter.Shader.AddParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>nameInShader</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Store a shader parameter name by an Enum value. After storing a parameter this way you can use SetParameter on shader instances with the Enum value and it will retrieve the parameter name string. </p>
|
|
<p>If your shader has a parameter named "overlayColor" you can do this: <a class="el" href="class_otter_1_1_shader.html#ae74e436b4c8c54e7a9a22c279e4d3379" title="Set a parameter on the shader. ">Shader.SetParameter</a>(ShaderParams.OverlayColor, "overlayColor"); And then on a shader instance you can do this: someImageWithAShader.Shader.SetParameter(ShaderParams.OverlayColor, Color.Red); </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The Enum value to use as the key for the shader parameter name.</td></tr>
|
|
<tr><td class="paramname">nameInShader</td><td>The name of the parameter in the shader code.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9b4cb4538e1af1be3a10ac26b7d08e21"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static SFML.Graphics.Shader Otter.Shader.FromString </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>vertexShader</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>fragmentShader</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load both the vertex and fragment shaders from source codes in memory </p>
|
|
<p>This function can load both the vertex and the fragment shaders, or only one of them: pass NULL if you don't want to load either the vertex shader or the fragment shader. The sources must be valid shaders in GLSL language. GLSL is a C-like language dedicated to OpenGL shaders; you'll probably need to read a good documentation for it before writing your own shaders. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">vertexShader</td><td>String containing the source code of the vertex shader</td></tr>
|
|
<tr><td class="paramname">fragmentShader</td><td>String containing the source code of the fragment shader</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>New shader instance</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a78d1b9995b691f088e5f78cb59177fc1"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="class_otter_1_1_shader.html">Shader</a> Otter.Shader.FromString </td>
|
|
<td>(</td>
|
|
<td class="paramtype">ShaderType </td>
|
|
<td class="paramname"><em>shaderType</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>shader</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a> using source code in memory </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">shaderType</td><td>Type of <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a></td></tr>
|
|
<tr><td class="paramname">shader</td><td>GLSL code in memory</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>New <a class="el" href="class_otter_1_1_shader.html" title="Class representing a shader written in GLSL. Warning: Visual Studio encoding must be set to Western E...">Shader</a></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="adaf7f08615e2baafc7d044afcb70e157"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static string Otter.Shader.Parameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the parameter string stored with the Enum key. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The Enum name that is the key for the string parameter.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>The string parameter.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae74e436b4c8c54e7a9a22c279e4d3379"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="class_otter_1_1_color.html">Color</a> </td>
|
|
<td class="paramname"><em>color</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">color</td><td>The color to set it to.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acac713d4ebf0e853a0b01a2137801c88"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="class_otter_1_1_color.html">Color</a> </td>
|
|
<td class="paramname"><em>color</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">color</td><td>The color to set it to.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5df2308b5faf4153fa119e592c671c00"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">x</td><td>The value to set it to.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8f5cde534fcbf11a5a83ad255b9234f3"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">x</td><td>The value to set it to.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4c0adbe482b546a297e94bff2da0e08b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">x</td><td>The first value of a vec2.</td></tr>
|
|
<tr><td class="paramname">y</td><td>The first value of a vec2.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa3bfcee5942dd7675470ac3371aa1098"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">x</td><td>The first value of a vec2.</td></tr>
|
|
<tr><td class="paramname">y</td><td>The first value of a vec2.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af1bc62b7cdf64ef5ef8967e4ae506733"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> </td>
|
|
<td class="paramname"><em>xy</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">xy</td><td>A <a class="el" href="struct_otter_1_1_vector2.html" title="Struct for representing a Vector2. ">Vector2</a> to set.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a13d6ca6b8b0c75b1399384ebb41901ef"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> </td>
|
|
<td class="paramname"><em>xy</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">xy</td><td>A <a class="el" href="struct_otter_1_1_vector2.html" title="Struct for representing a Vector2. ">Vector2</a> to set.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae262832a6e6ff87a2fe7a8ae7a07f5e7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector3.html">Vector3</a> </td>
|
|
<td class="paramname"><em>xyz</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">xyz</td><td>A <a class="el" href="struct_otter_1_1_vector3.html" title="Struct for representing a Vector3. ">Vector3</a> to set.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0ff896b1720e49ba828d3e66ac2c7670"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector3.html">Vector3</a> </td>
|
|
<td class="paramname"><em>xyz</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">xyz</td><td>A <a class="el" href="struct_otter_1_1_vector3.html" title="Struct for representing a Vector3. ">Vector3</a> to set.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2ce15fd0791e2e899f4e5f9410eca420"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector4.html">Vector4</a> </td>
|
|
<td class="paramname"><em>xyzw</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">xyzw</td><td>A <a class="el" href="struct_otter_1_1_vector4.html" title="Struct for representing a Vector4. ">Vector4</a> to set.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="abf76e14df61a5dc6ed6e884595ab2463"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector4.html">Vector4</a> </td>
|
|
<td class="paramname"><em>xyzw</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">xyzw</td><td>A <a class="el" href="struct_otter_1_1_vector4.html" title="Struct for representing a Vector4. ">Vector4</a> to set.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9f6a5d8fad5ea152076b95a63901b054"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>z</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">x</td><td>The first value of a vec3.</td></tr>
|
|
<tr><td class="paramname">y</td><td>The second value of a vec3.</td></tr>
|
|
<tr><td class="paramname">z</td><td>The third value of a vec3.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3a9c6d00f3253f28918cc0507d8616cd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>z</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">x</td><td>The first value of a vec3.</td></tr>
|
|
<tr><td class="paramname">y</td><td>The second value of a vec3.</td></tr>
|
|
<tr><td class="paramname">z</td><td>The third value of a vec3.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0ff4703651b9461dacbbc848175ac3f1"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>z</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>w</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">x</td><td>The first value of a vec4.</td></tr>
|
|
<tr><td class="paramname">y</td><td>The second value of a vec4.</td></tr>
|
|
<tr><td class="paramname">z</td><td>The third value of a vec4.</td></tr>
|
|
<tr><td class="paramname">w</td><td>The fourth value of a vec4.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0188bc49d802f834adfc4bee636e211e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>z</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>w</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">x</td><td>The first value of a vec4.</td></tr>
|
|
<tr><td class="paramname">y</td><td>The second value of a vec4.</td></tr>
|
|
<tr><td class="paramname">z</td><td>The third value of a vec4.</td></tr>
|
|
<tr><td class="paramname">w</td><td>The fourth value of a vec4.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="adaffc587dd2ceb36598119b61ece2f9a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="class_otter_1_1_texture.html">Texture</a> </td>
|
|
<td class="paramname"><em>texture</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">texture</td><td>The texture to set it to.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2fde56e773cd73aca503787301f40cd6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="class_otter_1_1_texture.html">Texture</a> </td>
|
|
<td class="paramname"><em>texture</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">texture</td><td>The texture to set it to.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a23bd1d28626ad13976a46378af383b23"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>textureSource</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">textureSource</td><td>The path to an image to load as a texture.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac672031348ecdd3ae4b755c7b694ef47"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>textureSource</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">textureSource</td><td>The path to an image to load as a texture.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3998c14c8eb327aca8cf9c61c10f3158"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_otter_1_1_matrix.html">Matrix</a> </td>
|
|
<td class="paramname"><em>matrix</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">matrix</td><td>The matrix to use. SFML internally uses 3x3 matrices, but you need to use a mat4 in the shader.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="adaf6f8dcde78afe785189c55428c3b32"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Otter.Shader.SetParameter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Enum </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_otter_1_1_matrix.html">Matrix</a> </td>
|
|
<td class="paramname"><em>matrix</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a parameter on the shader. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>The parameter in the shader to set.</td></tr>
|
|
<tr><td class="paramname">matrix</td><td>The matrix to use. SFML internally uses 3x3 matrices, but you need to use a mat4 in the shader.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>Otter/Graphics/Shader.cs</li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespace_otter.html">Otter</a></li><li class="navelem"><a class="el" href="class_otter_1_1_shader.html">Shader</a></li>
|
|
<li class="footer">Generated on Thu May 12 2016 18:16:52 for Otter by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|