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 |
---|
19 | 00010 <span class="keyword">namespace </span>Ogre |
---|
20 | 00011 { |
---|
21 | 00012 |
---|
22 | <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> |
---|
23 | 00014 { |
---|
24 | 00015 <span class="keyword">public</span>: |
---|
25 | <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>() { } |
---|
26 | <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>() { } |
---|
27 | 00018 |
---|
28 | 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; |
---|
29 | 00025 |
---|
30 | 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); |
---|
31 | 00027 |
---|
32 | 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; |
---|
33 | 00033 |
---|
34 | 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>); |
---|
35 | 00035 |
---|
36 | 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; |
---|
37 | 00037 |
---|
38 | 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, |
---|
39 | 00040 <span class="keywordtype">bool</span> fullScreen, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *miscParams = 0) = 0; |
---|
40 | 00041 |
---|
41 | 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, |
---|
42 | 00044 TextureType texType = TEX_TYPE_2D, PixelFormat internalFormat = PF_X8R8G8B8, |
---|
43 | 00045 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *miscParams = 0 ); |
---|
44 | 00046 |
---|
45 | 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; |
---|
46 | 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; |
---|
47 | 00055 |
---|
48 | <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> |
---|
49 | 00060 <span class="keyword"> </span>{ |
---|
50 | 00061 <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">mVendor</a>; |
---|
51 | 00062 } |
---|
52 | 00063 |
---|
53 | <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> |
---|
54 | 00068 <span class="keyword"> </span>{ |
---|
55 | 00069 <span class="keywordflow">return</span> mVersion; |
---|
56 | 00070 } |
---|
57 | 00071 |
---|
58 | 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>; |
---|
59 | 00076 |
---|
60 | 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>; |
---|
61 | 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; |
---|
62 | 00085 |
---|
63 | 00089 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1SDLGLSupporta16">initialiseExtensions</a>(); |
---|
64 | 00090 |
---|
65 | 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); |
---|
66 | 00095 |
---|
67 | 00096 <span class="keyword">protected</span>: |
---|
68 | 00097 <span class="comment">// Stored options</span> |
---|
69 | <a name="l00098"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp0">00098</a> <a class="code" href="namespaceOgre.html#a114">ConfigOptionMap</a> mOptions; |
---|
70 | 00099 |
---|
71 | 00100 <span class="comment">// This contains the complete list of supported extensions</span> |
---|
72 | <a name="l00101"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp1">00101</a> std::set<String> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1Win32GLSupportp1">extensionList</a>; |
---|
73 | 00102 <span class="keyword">private</span>: |
---|
74 | <a name="l00103"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr0">00103</a> <a class="code" href="namespaceOgre.html#a426">String</a> mVersion; |
---|
75 | <a name="l00104"></a><a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">00104</a> <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="classOgre_1_1GLSupport.html#Ogre_1_1GLSupportr1">mVendor</a>; |
---|
76 | 00105 |
---|
77 | 00106 }; <span class="comment">// class GLSupport</span> |
---|
78 | 00107 |
---|
79 | 00108 }; <span class="comment">// namespace Ogre</span> |
---|
80 | 00109 |
---|
81 | 00110 <span class="preprocessor">#endif // OGRE_GLSUPPORT_H</span> |
---|
82 | </pre></div><hr> |
---|
83 | <p> |
---|
84 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
85 | <!--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/> |
---|
86 | 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/> |
---|
87 | <!--/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#"> |
---|
88 | <Work rdf:about=""> |
---|
89 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
90 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
91 | </Work> |
---|
92 | <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> --> |
---|
93 | |
---|
94 | Last modified Sun Feb 12 12:59:45 2006 |
---|
95 | </p> |
---|
96 | </body> |
---|
97 | </html> |
---|