Sophie

Sophie

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

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/vtkOpenGLExtensionManager.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/vtkOpenGLExtensionManager.h</h1><a href="a03488.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">/*=========================================================================</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00006"></a>00006 <span class="comment">  Module:    $RCSfile: vtkOpenGLExtensionManager.h,v $</span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span>
<a name="l00009"></a>00009 <span class="comment">  All rights reserved.</span>
<a name="l00010"></a>00010 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00013"></a>00013 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00014"></a>00014 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">  Copyright 2003 Sandia Corporation.</span>
<a name="l00017"></a>00017 <span class="comment">  Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive</span>
<a name="l00018"></a>00018 <span class="comment">  license for use of this work by or on behalf of the</span>
<a name="l00019"></a>00019 <span class="comment">  U.S. Government. Redistribution and use in source and binary forms, with</span>
<a name="l00020"></a>00020 <span class="comment">  or without modification, are permitted provided that this Notice and any</span>
<a name="l00021"></a>00021 <span class="comment">  statement of authorship are reproduced on all copies.</span>
<a name="l00022"></a>00022 <span class="comment"></span>
<a name="l00023"></a>00023 <span class="comment">=========================================================================*/</span>
<a name="l00024"></a>00024 
<a name="l00126"></a>00126 <span class="preprocessor">#ifndef __vtkOpenGLExtensionManager_h</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#define __vtkOpenGLExtensionManager_h</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span>
<a name="l00129"></a>00129 <span class="preprocessor">#include &lt;<a class="code" href="a02079.html">vtkObject.h</a>&gt;</span>
<a name="l00130"></a>00130 <span class="preprocessor">#include &lt;<a class="code" href="a02168.html">vtkWeakPointer.h</a>&gt;</span> <span class="comment">// needed for vtkWeakPointer.</span>
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 <span class="keyword">class </span><a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>;
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 <span class="comment">//BTX</span>
<a name="l00135"></a>00135 <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00136"></a>00136 <span class="preprocessor">#ifdef _WIN32</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#include &lt;vtkOpenGL.h&gt;</span>  <span class="comment">// Needed for WINAPI</span>
<a name="l00138"></a>00138   <span class="keyword">typedef</span> int (WINAPI *<a class="code" href="a03488.html#31658168e1f02f6ab286361cb955fb1d">vtkOpenGLExtensionManagerFunctionPointer</a>)(void);
<a name="l00139"></a>00139 <span class="preprocessor">#else</span>
<a name="l00140"></a><a class="code" href="a03488.html#31658168e1f02f6ab286361cb955fb1d">00140</a> <span class="preprocessor"></span>  <span class="keyword">typedef</span> void (*<a class="code" href="a03488.html#31658168e1f02f6ab286361cb955fb1d">vtkOpenGLExtensionManagerFunctionPointer</a>)(void);
<a name="l00141"></a>00141 <span class="preprocessor">#endif</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span>}
<a name="l00143"></a>00143 <span class="comment">//ETX</span>
<a name="l00144"></a>00144 
<a name="l00145"></a><a class="code" href="a01105.html">00145</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01105.html" title="Interface class for querying and using OpenGL extensions.">vtkOpenGLExtensionManager</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00146"></a>00146 {
<a name="l00147"></a>00147 <span class="keyword">public</span>:
<a name="l00148"></a><a class="code" href="a01105.html#39f73c3cc43130f8c2de176da12580c4">00148</a>   vtkTypeRevisionMacro(<a class="code" href="a01105.html" title="Interface class for querying and using OpenGL extensions.">vtkOpenGLExtensionManager</a>, <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00149"></a>00149   <span class="keyword">static</span> <a class="code" href="a01105.html" title="Interface class for querying and using OpenGL extensions.">vtkOpenGLExtensionManager</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00150"></a>00150   <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="l00151"></a>00151 
<a name="l00153"></a>00153 
<a name="l00155"></a>00155   <a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>* GetRenderWindow();
<a name="l00156"></a>00156   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRenderWindow(<a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a> *renwin);
<a name="l00158"></a>00158 
<a name="l00160"></a>00160   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Update();
<a name="l00161"></a>00161 
<a name="l00163"></a>00163 
<a name="l00165"></a>00165   vtkGetStringMacro(ExtensionsString);
<a name="l00167"></a>00167 
<a name="l00169"></a>00169   <span class="keyword">virtual</span> <span class="keywordtype">int</span> ExtensionSupported(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00170"></a>00170 
<a name="l00171"></a>00171 <span class="comment">//BTX</span>
<a name="l00173"></a>00173 <span class="comment"></span>
<a name="l00175"></a>00175   <span class="keyword">virtual</span> <a class="code" href="a03488.html#31658168e1f02f6ab286361cb955fb1d">vtkOpenGLExtensionManagerFunctionPointer</a> GetProcAddress(
<a name="l00176"></a>00176     <span class="keyword">const</span> <span class="keywordtype">char</span> *fname);
<a name="l00178"></a>00178 <span class="comment">//ETX</span>
<a name="l00179"></a>00179 
<a name="l00184"></a>00184   <span class="keyword">virtual</span> <span class="keywordtype">void</span> LoadExtension(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00185"></a>00185 
<a name="l00192"></a>00192   <span class="keyword">virtual</span> <span class="keywordtype">int</span> LoadSupportedExtension(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00193"></a>00193 
<a name="l00194"></a>00194   
<a name="l00226"></a>00226   <span class="keyword">virtual</span> <span class="keywordtype">void</span> LoadCorePromotedExtension(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00227"></a>00227 <span class="comment">//BTX</span>
<a name="l00228"></a>00228 <span class="keyword">protected</span>:
<a name="l00229"></a>00229   <a class="code" href="a01105.html" title="Interface class for querying and using OpenGL extensions.">vtkOpenGLExtensionManager</a>();
<a name="l00230"></a>00230   <span class="keyword">virtual</span> ~<a class="code" href="a01105.html" title="Interface class for querying and using OpenGL extensions.">vtkOpenGLExtensionManager</a>();
<a name="l00231"></a>00231 
<a name="l00232"></a>00232 
<a name="l00233"></a><a class="code" href="a01105.html#3d241e44b758ff0965f713903fd9b8c9">00233</a>   <span class="keywordtype">int</span> OwnRenderWindow;
<a name="l00234"></a><a class="code" href="a01105.html#5bddb3e2be41076b61ac59830a2e60a7">00234</a>   <span class="keywordtype">char</span> *ExtensionsString;
<a name="l00235"></a>00235 
<a name="l00236"></a><a class="code" href="a01105.html#489cfd2f8a6f83893e6d6b720b6a07d2">00236</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> BuildTime;
<a name="l00237"></a>00237 
<a name="l00238"></a>00238   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadOpenGLExtensions();
<a name="l00239"></a>00239   
<a name="l00245"></a>00245   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SafeLoadExtension(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00246"></a>00246 
<a name="l00247"></a>00247 <span class="keyword">private</span>:
<a name="l00248"></a>00248   <a class="code" href="a01105.html" title="Interface class for querying and using OpenGL extensions.">vtkOpenGLExtensionManager</a>(<span class="keyword">const</span> <a class="code" href="a01105.html" title="Interface class for querying and using OpenGL extensions.">vtkOpenGLExtensionManager</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00249"></a>00249   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01105.html" title="Interface class for querying and using OpenGL extensions.">vtkOpenGLExtensionManager</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00250"></a>00250 
<a name="l00251"></a>00251   <a class="code" href="a01869.html" title="a weak reference to a vtkObject.">vtkWeakPointer&lt;vtkRenderWindow&gt;</a> RenderWindow;
<a name="l00252"></a>00252 <span class="comment">//ETX</span>
<a name="l00253"></a>00253 };
<a name="l00254"></a>00254 
<a name="l00255"></a>00255 <span class="preprocessor">#endif //__vtkOpenGLExtensionManager</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:48 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>