Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 98920281af4e2e96d5ea984cee4f9e2f > files > 3177

clanlib0.8-docs-0.8.1-5mdv2010.1.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_ShaderObject::CL_ShaderObject - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>CL_ShaderObject::CL_ShaderObject</h1>
<p>  Constructs an OpenGL shader.</p>
<pre>
	CL_ShaderObject(
		CL_ShaderType type);

	CL_ShaderObject(
		CL_ShaderType type, const std::string& source);

	CL_ShaderObject(
		CL_ShaderType type, const std::vector&lt;std::string&gt;& sources);

	CL_ShaderObject(
		const std::string& resource_id, CL_ResourceManager* resources);
</pre>
<p><b>Parameters:</b></p>
<dl>
<dt><i>type</i></dt><dd>Shader type. Can be cl_shadertype_vertex or cl_shadertype_fragment.</dd>
<dt><i>source</i></dt><dd>Shader source code, in OpenGL Shader Language (GLSL).</dd>
<dt><i>sources</i></dt><dd>Shader source code as list of strings.</dd>
<dt><i>resource_id</i></dt><dd>Name of shader object resource.</dd>
<dt><i>resources</i></dt><dd>Resource Manager providing resource.</dd>
</dl>
<p><b>See also:</b></p>
<p><a href="CL_ResourceManager.html">CL_ResourceManager</a> | <a href="CL_Resource.html">CL_Resource</a> | <a href="CL_ShaderObject.html">CL_ShaderObject</a></p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->