1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreWin32GLSupport.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>OgreWin32GLSupport.h</h1><a href="OgreWin32GLSupport_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef __OgreWin32GLSupport_H__</span> |
---|
11 | 00002 <span class="preprocessor"></span><span class="preprocessor">#define __OgreWin32GLSupport_H__</span> |
---|
12 | 00003 <span class="preprocessor"></span> |
---|
13 | 00004 <span class="preprocessor">#include "<a class="code" href="RenderSystems_2GL_2include_2OgreWin32Prerequisites_8h.html">OgreWin32Prerequisites.h</a>"</span> |
---|
14 | 00005 <span class="preprocessor">#include "<a class="code" href="OgreGLSupport_8h.html">OgreGLSupport.h</a>"</span> |
---|
15 | 00006 <span class="preprocessor">#include "<a class="code" href="OgreGLRenderSystem_8h.html">OgreGLRenderSystem.h</a>"</span> |
---|
16 | 00007 |
---|
17 | 00008 <span class="keyword">namespace </span>Ogre |
---|
18 | 00009 { |
---|
19 | 00010 |
---|
20 | <a name="l00011"></a><a class="code" href="classOgre_1_1Win32GLSupport.html">00011</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1Win32GLSupport.html">Win32GLSupport</a> : <span class="keyword">public</span> <a class="code" href="classOgre_1_1GLSupport.html">GLSupport</a> |
---|
21 | 00012 { |
---|
22 | 00013 <span class="keyword">public</span>: |
---|
23 | 00014 <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta0">Win32GLSupport</a>(); |
---|
24 | 00020 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta1">addConfig</a>(); |
---|
25 | 00021 |
---|
26 | 00022 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta2">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); |
---|
27 | 00023 |
---|
28 | 00027 <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta3">validateConfig</a>(); |
---|
29 | 00028 |
---|
30 | 00029 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1RenderWindow.html">RenderWindow</a>* <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta4">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 = <span class="stringliteral">"OGRE Render Window"</span>); |
---|
31 | 00030 |
---|
32 | 00032 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1RenderWindow.html">RenderWindow</a>* <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta5">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, |
---|
33 | 00033 <span class="keywordtype">bool</span> fullScreen, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *miscParams = 0); |
---|
34 | 00034 |
---|
35 | 00036 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1RenderTexture.html">RenderTexture</a> * <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta6">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, |
---|
36 | 00037 <a class="code" href="namespaceOgre.html#a681">TextureType</a> texType = <a class="code" href="namespaceOgre.html#a681a547">TEX_TYPE_2D</a>, <a class="code" href="namespaceOgre.html#a667">PixelFormat</a> internalFormat = <a class="code" href="namespaceOgre.html#a667a382">PF_X8R8G8B8</a>, |
---|
37 | 00038 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *miscParams = 0 ); |
---|
38 | 00039 |
---|
39 | 00043 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta7">start</a>(); |
---|
40 | 00047 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta8">stop</a>(); |
---|
41 | 00048 |
---|
42 | 00052 <span class="keywordtype">void</span>* <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta9">getProcAddress</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& procname); |
---|
43 | 00053 |
---|
44 | 00057 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta10">initialiseExtensions</a>(); |
---|
45 | 00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta11">initialiseCapabilities</a>(<a class="code" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> &caps); |
---|
46 | 00062 |
---|
47 | 00063 <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporta12">selectPixelFormat</a>(HDC hdc, <span class="keywordtype">int</span> colourDepth, <span class="keywordtype">int</span> multisample = 0); |
---|
48 | 00064 |
---|
49 | 00065 <span class="keyword">private</span>: |
---|
50 | 00066 <span class="comment">// Allowed video modes</span> |
---|
51 | <a name="l00067"></a><a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportr0">00067</a> std::vector<DEVMODE> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportr0">mDevModes</a>; |
---|
52 | <a name="l00068"></a><a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportr1">00068</a> <a class="code" href="classOgre_1_1Win32Window.html">Win32Window</a> *<a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportr1">mInitialWindow</a>; |
---|
53 | <a name="l00069"></a><a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportr2">00069</a> std::vector<int> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportr2">mFSAALevels</a>; |
---|
54 | <a name="l00070"></a><a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportr3">00070</a> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportr3">mHasPixelFormatARB</a>; |
---|
55 | 00071 |
---|
56 | 00072 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportd0">refreshConfig</a>(); |
---|
57 | 00073 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupportd1">initialiseWGL</a>(); |
---|
58 | 00074 <span class="keyword">static</span> LRESULT CALLBACK <a class="code" href="classOgre_1_1Win32GLSupport.html#Ogre_1_1Win32GLSupporth0">dummyWndProc</a>(HWND hwnd, UINT umsg, WPARAM wp, LPARAM lp); |
---|
59 | 00075 }; |
---|
60 | 00076 |
---|
61 | 00077 } |
---|
62 | 00078 |
---|
63 | 00079 <span class="preprocessor">#endif</span> |
---|
64 | </pre></div><hr> |
---|
65 | <p> |
---|
66 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
67 | <!--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/> |
---|
68 | 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/> |
---|
69 | <!--/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#"> |
---|
70 | <Work rdf:about=""> |
---|
71 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
72 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
73 | </Work> |
---|
74 | <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> --> |
---|
75 | |
---|
76 | Last modified Sun Feb 12 12:59:54 2006 |
---|
77 | </p> |
---|
78 | </body> |
---|
79 | </html> |
---|