1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreGLSupport.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body> |
---|
8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
9 | <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> |
---|
10 | <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> |
---|
11 | 00002 <span class="preprocessor"></span><span class="preprocessor">#define OGRE_GLSUPPORT_H</span> |
---|
12 | 00003 <span class="preprocessor"></span> |
---|
13 | 00004 <span class="preprocessor">#include "<a class="code" href="OgreGLPrerequisites_8h.html">OgreGLPrerequisites.h</a>"</span> |
---|
14 | 00005 <span class="preprocessor">#include "<a class="code" href="OgreGLRenderSystem_8h.html">OgreGLRenderSystem.h</a>"</span> |
---|
15 | 00006 |
---|
16 | 00007 <span class="preprocessor">#include "<a class="code" href="OgreRenderWindow_8h.html">OgreRenderWindow.h</a>"</span> |
---|
17 | 00008 <span class="preprocessor">#include "<a class="code" href="OgreConfigOptionMap_8h.html">OgreConfigOptionMap.h</a>"</span> |
---|
18 | 00009 <span class="preprocessor">#include "<a class="code" href="OgreGLPBuffer_8h.html">OgreGLPBuffer.h</a>"</span> |
---|
19 | 00010 |
---|
20 | 00011 <span class="keyword">namespace </span>Ogre |
---|
21 | 00012 { |
---|
22 | 00013 |
---|
23 | <a name="l00014"></a><a class="code" href="classOgre_1_1GLSupport.html">00014</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1GLSupport.html">GLSupport</a> |
---|
24 | 00015 { |
---|
25 | 00016 <span class="keyword">public</span>: |
---|
26 | <a name="l00017"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta0">00017</a> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta0">GLSupport</a>() { } |
---|
27 | <a name="l00018"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta1">00018</a> <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta1">~GLSupport</a>() { } |
---|
28 | 00019 |
---|
29 | 00025 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta2">addConfig</a>() = 0; |
---|
30 | 00026 |
---|
31 | 00027 <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#a471">String</a> &name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a> &value); |
---|
32 | 00028 |
---|
33 | 00033 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a471">String</a> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta4">validateConfig</a>() = 0; |
---|
34 | 00034 |
---|
35 | 00035 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a143">ConfigOptionMap</a>& <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta13">getConfigOptions</a>(<span class="keywordtype">void</span>); |
---|
36 | 00036 |
---|
37 | 00037 <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#a471">String</a>& windowTitle) = 0; |
---|
38 | 00038 |
---|
39 | 00040 <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#a471">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, |
---|
40 | 00041 <span class="keywordtype">bool</span> fullScreen, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a76">NameValuePairList</a> *miscParams = 0) = 0; |
---|
41 | 00042 |
---|
42 | 00043 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta11">supportsPBuffers</a>(); |
---|
43 | 00044 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1GLPBuffer.html">GLPBuffer</a> *<a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta12">createPBuffer</a>(PixelComponentType format, size_t width, size_t height); |
---|
44 | 00045 |
---|
45 | 00049 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta10">start</a>() = 0; |
---|
46 | 00053 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta11">stop</a>() = 0; |
---|
47 | 00054 |
---|
48 | <a name="l00058"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta14">00058</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">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> |
---|
49 | 00059 <span class="keyword"> </span>{ |
---|
50 | 00060 <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">mVendor</a>; |
---|
51 | 00061 } |
---|
52 | 00062 |
---|
53 | <a name="l00066"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupporta15">00066</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">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> |
---|
54 | 00067 <span class="keyword"> </span>{ |
---|
55 | 00068 <span class="keywordflow">return</span> mVersion; |
---|
56 | 00069 } |
---|
57 | 00070 |
---|
58 | 00074 <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#a471">String</a>& v) <span class="keyword">const</span>; |
---|
59 | 00075 |
---|
60 | 00079 <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#a471">String</a>& ext) <span class="keyword">const</span>; |
---|
61 | 00083 <span class="keyword">virtual</span> <span class="keywordtype">void</span>* <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupporta16">getProcAddress</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& procname) = 0; |
---|
62 | 00084 |
---|
63 | 00088 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta17">initialiseExtensions</a>(); |
---|
64 | 00089 |
---|
65 | 00090 <span class="keyword">protected</span>: |
---|
66 | 00091 <span class="comment">// Stored options</span> |
---|
67 | <a name="l00092"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp0">00092</a> <a class="code" href="namespaceOgre.html#a143">ConfigOptionMap</a> mOptions; |
---|
68 | 00093 |
---|
69 | 00094 <span class="comment">// This contains the complete list of supported extensions</span> |
---|
70 | <a name="l00095"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp1">00095</a> std::set<String> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp1">extensionList</a>; |
---|
71 | 00096 <span class="keyword">private</span>: |
---|
72 | <a name="l00097"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr0">00097</a> <a class="code" href="namespaceOgre.html#a471">String</a> mVersion; |
---|
73 | <a name="l00098"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">00098</a> <a class="code" href="namespaceOgre.html#a471">String</a> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">mVendor</a>; |
---|
74 | 00099 |
---|
75 | 00100 }; <span class="comment">// class GLSupport</span> |
---|
76 | 00101 |
---|
77 | 00102 }; <span class="comment">// namespace Ogre</span> |
---|
78 | 00103 |
---|
79 | 00104 <span class="preprocessor">#endif // OGRE_GLSUPPORT_H</span> |
---|
80 | </pre></div><hr> |
---|
81 | <p> |
---|
82 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
83 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
84 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
85 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
86 | <Work rdf:about=""> |
---|
87 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
88 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
89 | </Work> |
---|
90 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
91 | |
---|
92 | Last modified Sun Mar 12 14:37:41 2006 |
---|
93 | </p> |
---|
94 | </body> |
---|
95 | </html> |
---|