<html> <head> <title>OgreGLSupport.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <!-- Generated by Doxygen 1.3.6 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> <h1>OgreGLSupport.h</h1><a href="OgreGLSupport_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef OGRE_GLSUPPORT_H</span> 00002 <span class="preprocessor"></span><span class="preprocessor">#define OGRE_GLSUPPORT_H</span> 00003 <span class="preprocessor"></span> 00004 <span class="preprocessor">#include "<a class="code" href="OgreGLPrerequisites_8h.html">OgreGLPrerequisites.h</a>"</span> 00005 <span class="preprocessor">#include "<a class="code" href="OgreGLRenderSystem_8h.html">OgreGLRenderSystem.h</a>"</span> 00006 00007 <span class="preprocessor">#include "<a class="code" href="OgreRenderWindow_8h.html">OgreRenderWindow.h</a>"</span> 00008 <span class="preprocessor">#include "<a class="code" href="OgreConfigOptionMap_8h.html">OgreConfigOptionMap.h</a>"</span> 00009 00010 <span class="keyword">namespace </span>Ogre 00011 { 00012 <a name="l00013"></a><a class="code" href="classOgre_1_1GLSupport.html">00013</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1GLSupport.html">GLSupport</a> 00014 { 00015 <span class="keyword">public</span>: <a name="l00016"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta0">00016</a> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta0">GLSupport</a>() { } <a name="l00017"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta1">00017</a> <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta1">~GLSupport</a>() { } 00018 00024 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta2">addConfig</a>() = 0; 00025 00026 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta9">setConfigOption</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &value); 00027 00032 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta4">validateConfig</a>() = 0; 00033 00034 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a114">ConfigOptionMap</a>& <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta13">getConfigOptions</a>(<span class="keywordtype">void</span>); 00035 00036 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1RenderWindow.html">RenderWindow</a>* <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta6">createWindow</a>(<span class="keywordtype">bool</span> autoCreateWindow, <a class="code" href="classOgre_1_1GLRenderSystem.html">GLRenderSystem</a>* renderSystem, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& windowTitle) = 0; 00037 00039 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1RenderWindow.html">RenderWindow</a>* <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GTKGLSupporta17">newWindow</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height, 00040 <span class="keywordtype">bool</span> fullScreen, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *miscParams = 0) = 0; 00041 00043 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1RenderTexture.html">RenderTexture</a> * <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta11">createRenderTexture</a>( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> & name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height, 00044 TextureType texType = TEX_TYPE_2D, PixelFormat internalFormat = PF_X8R8G8B8, 00045 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *miscParams = 0 ); 00046 00050 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta9">start</a>() = 0; 00054 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta10">stop</a>() = 0; 00055 <a name="l00059"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta14">00059</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta14">getGLVendor</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> 00060 <span class="keyword"> </span>{ 00061 <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">mVendor</a>; 00062 } 00063 <a name="l00067"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta15">00067</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta15">getGLVersion</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> 00068 <span class="keyword"> </span>{ 00069 <span class="keywordflow">return</span> mVersion; 00070 } 00071 00075 <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta16">checkMinGLVersion</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& v) <span class="keyword">const</span>; 00076 00080 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta17">checkExtension</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& ext) <span class="keyword">const</span>; 00084 <span class="keyword">virtual</span> <span class="keywordtype">void</span>* <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta15">getProcAddress</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& procname) = 0; 00085 00089 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta16">initialiseExtensions</a>(); 00090 00094 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta17">initialiseCapabilities</a>(<a class="code" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> &caps); 00095 <a name="l00096"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta18">00096</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta18">resizeRepositionWindow</a>(<span class="keywordtype">void</span> * window){<a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp1">m_windowToResize</a> = window;}; <a name="l00097"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta19">00097</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta19">resizeReposition</a>(<span class="keywordtype">void</span>*){;}; <span class="comment">// should change to pure when it is implemented for all cases</span> 00098 00099 <span class="keyword">protected</span>: 00100 <span class="comment">// Stored options</span> <a name="l00101"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp0">00101</a> <a class="code" href="namespaceOgre.html#a114">ConfigOptionMap</a> mOptions; 00102 <a name="l00103"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp1">00103</a> <span class="keywordtype">void</span> *<a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp1">m_windowToResize</a>; 00104 00105 <span class="comment">// This contains the complete list of supported extensions</span> <a name="l00106"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp2">00106</a> std::set<String> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp2">extensionList</a>; 00107 <span class="keyword">private</span>: <a name="l00108"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr0">00108</a> <a class="code" href="namespaceOgre.html#a426">String</a> mVersion; <a name="l00109"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">00109</a> <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">mVendor</a>; 00110 00111 }; <span class="comment">// class GLSupport</span> 00112 00113 }; <span class="comment">// namespace Ogre</span> 00114 00115 <span class="preprocessor">#endif // OGRE_GLSUPPORT_H</span> </pre></div><p> Copyright © 2000-2005 by The OGRE Team<br /> Last modified Wed Feb 23 00:19:06 2005 </p> </body> </html>