Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 5340

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>VTK: dox/Rendering/vtkShader2.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/Rendering/vtkShader2.h</h1><a href="a03548.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkShader2.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span>
<a name="l00007"></a>00007 <span class="comment">  All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00011"></a>00011 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00012"></a>00012 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span>
<a name="l00033"></a>00033 <span class="preprocessor">#ifndef __vtkShader2_h</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __vtkShader2_h</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="comment">// Values for GetType()/SetType()</span>
<a name="l00039"></a><a class="code" href="a03548.html#fff71961435d141ed262c76c1fd9b48d">00039</a> <span class="keyword">enum</span> <a class="code" href="a03548.html#fff71961435d141ed262c76c1fd9b48d">vtkShader2Type</a>
<a name="l00040"></a>00040 {
<a name="l00041"></a><a class="code" href="a03548.html#fff71961435d141ed262c76c1fd9b48dab074d7c7159e2af0d057ab3d609bf7b">00041</a>   <a class="code" href="a03548.html#fff71961435d141ed262c76c1fd9b48dab074d7c7159e2af0d057ab3d609bf7b">VTK_SHADER_TYPE_VERTEX</a>=0,
<a name="l00042"></a><a class="code" href="a03548.html#fff71961435d141ed262c76c1fd9b48dd286c940149241e15e97cc87044820b4">00042</a>   <a class="code" href="a03548.html#fff71961435d141ed262c76c1fd9b48dd286c940149241e15e97cc87044820b4">VTK_SHADER_TYPE_GEOMETRY</a>=1,
<a name="l00043"></a><a class="code" href="a03548.html#fff71961435d141ed262c76c1fd9b48d3fb0529718b6117f9b58dd1eb6c4e97c">00043</a>   <a class="code" href="a03548.html#fff71961435d141ed262c76c1fd9b48d3fb0529718b6117f9b58dd1eb6c4e97c">VTK_SHADER_TYPE_FRAGMENT</a>=2
<a name="l00044"></a>00044 <span class="comment">//  VTK_SHADER_TYPE_HULL=3, // speculation on DX11, not supported yet.</span>
<a name="l00045"></a>00045 <span class="comment">//  VTK_SHADER_TYPE_DOMAIN=4 // speculation on DX11, not supported yet.</span>
<a name="l00046"></a>00046 };
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01120.html" title="OpenGL rendering window.">vtkOpenGLRenderWindow</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a01779.html" title="GLSL uniform variables.">vtkUniformVariables</a>;
<a name="l00050"></a>00050 
<a name="l00051"></a><a class="code" href="a01533.html">00051</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01533.html" title="GLSL Shader.">vtkShader2</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053 <span class="keyword">public</span>:
<a name="l00054"></a>00054   <span class="keyword">static</span> <a class="code" href="a01533.html" title="GLSL Shader.">vtkShader2</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00055"></a><a class="code" href="a01533.html#dd3cad1bb57c4791b7a47007563cd688">00055</a>   vtkTypeRevisionMacro(<a class="code" href="a01533.html" title="GLSL Shader.">vtkShader2</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00056"></a>00056   <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream &amp;os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00057"></a>00057   
<a name="l00059"></a>00059 
<a name="l00060"></a>00060   <span class="keyword">static</span> <span class="keywordtype">bool</span> IsSupported(<a class="code" href="a01120.html" title="OpenGL rendering window.">vtkOpenGLRenderWindow</a> *context);
<a name="l00061"></a>00061   <span class="keyword">static</span> <span class="keywordtype">bool</span> LoadExtensions(<a class="code" href="a01120.html" title="OpenGL rendering window.">vtkOpenGLRenderWindow</a> *context);
<a name="l00063"></a>00063   
<a name="l00065"></a>00065 
<a name="l00067"></a>00067   vtkGetStringMacro(SourceCode);
<a name="l00068"></a>00068   vtkSetStringMacro(SourceCode);
<a name="l00070"></a>00070   
<a name="l00072"></a>00072 
<a name="l00075"></a>00075   vtkGetMacro(Type,<span class="keywordtype">int</span>);
<a name="l00077"></a>00077   
<a name="l00079"></a>00079 
<a name="l00082"></a>00082   vtkSetMacro(Type,<span class="keywordtype">int</span>);
<a name="l00084"></a>00084   
<a name="l00086"></a>00086   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetTypeAsString();
<a name="l00087"></a>00087   
<a name="l00091"></a>00091   <span class="keywordtype">void</span> Compile();
<a name="l00092"></a>00092   
<a name="l00095"></a>00095   <span class="keywordtype">bool</span> GetLastCompileStatus();
<a name="l00096"></a>00096   
<a name="l00099"></a>00099   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetLastCompileLog();
<a name="l00100"></a>00100   
<a name="l00102"></a>00102 
<a name="l00106"></a>00106   <span class="keywordtype">void</span> SetContext(<a class="code" href="a01120.html" title="OpenGL rendering window.">vtkOpenGLRenderWindow</a> *context);
<a name="l00107"></a>00107   vtkGetObjectMacro(Context,<a class="code" href="a01120.html" title="OpenGL rendering window.">vtkOpenGLRenderWindow</a>);
<a name="l00109"></a>00109   
<a name="l00111"></a>00111   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReleaseGraphicsResources();
<a name="l00112"></a>00112   
<a name="l00114"></a>00114 
<a name="l00115"></a>00115   vtkGetMacro(Id,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);
<a name="l00117"></a>00117   
<a name="l00119"></a>00119 
<a name="l00121"></a>00121   vtkGetObjectMacro(UniformVariables,<a class="code" href="a01779.html" title="GLSL uniform variables.">vtkUniformVariables</a>);
<a name="l00122"></a>00122   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetUniformVariables(<a class="code" href="a01779.html" title="GLSL uniform variables.">vtkUniformVariables</a> *variables);
<a name="l00124"></a>00124   
<a name="l00125"></a>00125 <span class="keyword">protected</span>:
<a name="l00127"></a>00127   <a class="code" href="a01533.html" title="GLSL Shader.">vtkShader2</a>();
<a name="l00128"></a>00128   
<a name="l00130"></a>00130   <span class="keyword">virtual</span> ~<a class="code" href="a01533.html" title="GLSL Shader.">vtkShader2</a>();
<a name="l00131"></a>00131   
<a name="l00132"></a><a class="code" href="a01533.html#7fa1213e4d8f5f7b65f65f7db5ec4e7d">00132</a>   <span class="keywordtype">char</span> *SourceCode;
<a name="l00133"></a><a class="code" href="a01533.html#7e43e336370cd6a3b48a968c3e72b0da">00133</a>   <span class="keywordtype">int</span> Type;
<a name="l00134"></a>00134   
<a name="l00135"></a><a class="code" href="a01533.html#0615943d81b115385f46d99dc0ee82fa">00135</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Id; <span class="comment">// actually GLuint. Initial value is 0.</span>
<a name="l00136"></a>00136   
<a name="l00137"></a><a class="code" href="a01533.html#2c3e40acd8eda784dc1e697328be6381">00137</a>   <span class="keywordtype">bool</span> LastCompileStatus; <span class="comment">// Initial value is false.</span>
<a name="l00138"></a><a class="code" href="a01533.html#578e31aa5ee93bedac1a9de8d811b1e4">00138</a>   <span class="keywordtype">char</span> *LastCompileLog; <span class="comment">// Initial value is the empty string ""='\0'.</span>
<a name="l00139"></a><a class="code" href="a01533.html#0614944018a175a4fc79e45ec7684bf3">00139</a>   <span class="keywordtype">size_t</span> LastCompileLogCapacity; <span class="comment">// Initial value is 8.</span>
<a name="l00140"></a>00140   
<a name="l00141"></a><a class="code" href="a01533.html#119811d99b08c8227c0ab18f78c6f71b">00141</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> LastCompileTime;
<a name="l00142"></a><a class="code" href="a01533.html#43d66642de54c4a284ca7767a1255968">00142</a>   <a class="code" href="a01779.html" title="GLSL uniform variables.">vtkUniformVariables</a> *UniformVariables; <span class="comment">// Initial values is an empty list</span>
<a name="l00143"></a><a class="code" href="a01533.html#1388f966f5e0d2a7288170a8f8fb2333">00143</a>   <a class="code" href="a01120.html" title="OpenGL rendering window.">vtkOpenGLRenderWindow</a> *Context;
<a name="l00144"></a>00144   
<a name="l00145"></a><a class="code" href="a01533.html#0f8c0f97a61a737b65c02fc474362376">00145</a>   <span class="keywordtype">bool</span> ExtensionsLoaded;
<a name="l00146"></a><a class="code" href="a01533.html#791dc7016454a3aac0ed22ecfddf9d26">00146</a>   <span class="keywordtype">bool</span> SupportGeometryShader;
<a name="l00147"></a>00147   
<a name="l00148"></a>00148 <span class="keyword">private</span>:
<a name="l00149"></a>00149   <a class="code" href="a01533.html" title="GLSL Shader.">vtkShader2</a>(<span class="keyword">const</span> <a class="code" href="a01533.html" title="GLSL Shader.">vtkShader2</a>&amp;); <span class="comment">// Not implemented.</span>
<a name="l00150"></a>00150   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01533.html" title="GLSL Shader.">vtkShader2</a>&amp;); <span class="comment">// Not implemented.</span>
<a name="l00151"></a>00151 };
<a name="l00152"></a>00152 
<a name="l00153"></a>00153 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:49 2009 for VTK by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>