source: OGRE/trunk/ogrenew/Docs/api/html/OgreDDDriver_8h-source.html @ 657

Revision 657, 13.2 KB checked in by mattausch, 18 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1<html>
2<head>
3<title>OgreDDDriver.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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
10<h1>OgreDDDriver.h</h1><a href="OgreDDDriver_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
1100002 <span class="comment">-----------------------------------------------------------------------------</span>
1200003 <span class="comment">This source file is part of OGRE</span>
1300004 <span class="comment">    (Object-oriented Graphics Rendering Engine)</span>
1400005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span>
1500006 <span class="comment"></span>
1600007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span>
1700008 <span class="comment">Also see acknowledgements in Readme.html</span>
1800009 <span class="comment"></span>
1900010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span>
2000011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span>
2100012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span>
2200013 <span class="comment">version.</span>
2300014 <span class="comment"></span>
2400015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span>
2500016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
2600017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span>
2700018 <span class="comment"></span>
2800019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span>
2900020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span>
3000021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span>
3100022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span>
3200023 <span class="comment">-----------------------------------------------------------------------------</span>
3300024 <span class="comment">*/</span>
3400025 <span class="preprocessor">#ifndef __DDDRIVER_H__</span>
3500026 <span class="preprocessor"></span><span class="preprocessor">#define __DDDRIVER_H__</span>
3600027 <span class="preprocessor"></span>
3700028 <span class="comment">// Precompiler options</span>
3800029 <span class="preprocessor">#include "<a class="code" href="OgreD3D7Prerequisites_8h.html">OgreD3D7Prerequisites.h</a>"</span>
3900030
4000031 <span class="comment">// Declaration</span>
4100032 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span>
4200033
4300034 <span class="keyword">namespace </span>Ogre {
4400035
4500036     <span class="keyword">class </span>D3DDeviceList;
4600037     <span class="keyword">class </span>DDVideoModeList;
4700038     <span class="keyword">class </span>DDVideoMode;
4800039     <span class="keyword">class </span><a class="code" href="namespaceOgre.html#a567">D3DDevice</a>;
4900040
5000041
51<a name="l00045"></a><a class="code" href="classOgre_1_1DDDriver.html">00045</a>     <span class="keyword">class </span><a class="code" href="OgreD3D7Prerequisites_8h.html#a5">_OgreD3DExport</a> DDDriver
5200046     {
5300047     <span class="keyword">private</span>:
5400048
55<a name="l00049"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr0">00049</a>         <a class="code" href="namespaceOgre.html#a426">String</a> mDriverName;
56<a name="l00050"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr1">00050</a>         <a class="code" href="namespaceOgre.html#a426">String</a> mDriverDesc;
57<a name="l00051"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr2">00051</a>         GUID  mGuid; <span class="comment">// Note - copy of GUID, not pointer to</span>
58<a name="l00052"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr3">00052</a>         <span class="keywordtype">bool</span>  mPrimaryDisplay;
5900053
60<a name="l00054"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr4">00054</a>         LPDIRECTDRAW7 lpDD7; <span class="comment">// pointer to IDirectDraw7 interface</span>
61<a name="l00055"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr5">00055</a>         LPDIRECT3D7   lpD3D; <span class="comment">// pointer to IDirect3D7 interface (if required)</span>
62<a name="l00056"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr6">00056</a>         <a class="code" href="classOgre_1_1D3DDeviceList.html">D3DDeviceList</a>* mDeviceList; <span class="comment">// List of Direct3D devices</span>
63<a name="l00057"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr7">00057</a>         <a class="code" href="classOgre_1_1DDVideoModeList.html">DDVideoModeList</a>* mVideoModeList; <span class="comment">// List of video modes</span>
64<a name="l00058"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr8">00058</a>         <a class="code" href="classOgre_1_1D3DDevice.html">D3DDevice</a>* active3DDevice;
65<a name="l00059"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr9">00059</a>         <a class="code" href="classOgre_1_1DDVideoMode.html">DDVideoMode</a>* activeVideoMode;
66<a name="l00060"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr10">00060</a>         HWND activeHWnd;
6700061
68<a name="l00062"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr11">00062</a>         DDCAPS mSWCaps; <span class="comment">// Software capabilities</span>
69<a name="l00063"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr12">00063</a>         DDCAPS mHWCaps; <span class="comment">// Hardware capabilities</span>
7000064         <span class="keywordtype">void</span> logCaps(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
7100065
72<a name="l00066"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr13">00066</a>         LPDIRECTDRAWSURFACE7 lpDDSPrimary; <span class="comment">// Pointer to primary surface</span>
73<a name="l00067"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr14">00067</a>         LPDIRECTDRAWSURFACE7 lpDDSBack; <span class="comment">// Pointer to back buffer</span>
7400068
75<a name="l00069"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr15">00069</a>         <span class="keywordtype">bool</span> runningFullScreen;
76<a name="l00070"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr16">00070</a>         <span class="keywordtype">bool</span> using3DMode;
7700071
78<a name="l00072"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr17">00072</a>         RECT rcViewport; <span class="comment">//Only used for windowed mode</span>
79<a name="l00073"></a><a class="code" href="classOgre_1_1DDDriver.html#Ogre_1_1DDDriverr18">00073</a>         LPDIRECTDRAWCLIPPER lpDDClipper;
8000074
8100075         <span class="comment">// Private accessor functions</span>
8200076
8300077         <span class="keywordtype">void</span> RestoreSurfaces(<span class="keywordtype">void</span>);
8400078
8500079
8600080
8700081     <span class="keyword">public</span>:
8800082         <span class="comment">// Constructors</span>
8900083         DDDriver(); <span class="comment">// Default</span>
9000084         DDDriver(<span class="keyword">const</span> DDDriver &amp;ob); <span class="comment">// Copy</span>
9100085         DDDriver(GUID FAR *lpGuid,    <span class="comment">// Create from enum</span>
9200086                                 LPSTR lpDriverDescription,
9300087                                 LPSTR lpDriverName);
9400088         <span class="comment">// Destructor</span>
9500089         ~DDDriver();
9600090
9700114         <span class="keywordtype">void</span> createWindowSurfaces(HWND hWnd, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> colourDepth, <span class="keywordtype">bool</span> fullScreen,
9800115             LPDIRECTDRAWSURFACE7 *front, LPDIRECTDRAWSURFACE7 *back);
9900116
10000117         <span class="keywordtype">void</span> Cleanup(<span class="keywordtype">void</span>);
10100118         <span class="keywordtype">void</span> CheckWindow(<span class="keywordtype">void</span>);
10200119
10300120         <span class="comment">// Overloaded operator =</span>
10400121         DDDriver operator=(<span class="keyword">const</span> DDDriver &amp;orig);
10500122
10600123         <span class="comment">// Information accessors</span>
10700124         <a class="code" href="namespaceOgre.html#a426">String</a> DriverName(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
10800125         <a class="code" href="namespaceOgre.html#a426">String</a> DriverDescription(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
10900126         LPDIRECTDRAW7 directDraw(); <span class="comment">// Gets lpDD7 (instantiates if required)</span>
11000127
11100128         <a class="code" href="classOgre_1_1D3DDeviceList.html">D3DDeviceList</a>* get3DDeviceList(<span class="keywordtype">void</span>);
11200129         <a class="code" href="classOgre_1_1DDVideoModeList.html">DDVideoModeList</a>* getVideoModeList(<span class="keywordtype">void</span>);
11300130         <a class="code" href="classOgre_1_1DDVideoMode.html">DDVideoMode</a>* getActiveVideoMode(<span class="keywordtype">void</span>);
11400131
11500132         <span class="comment">// Retrieval of other objects</span>
11600133         <a class="code" href="classOgre_1_1D3DDevice.html">D3DDevice</a>* get3DDevice(<span class="keywordtype">void</span>);
11700134
11800135         <span class="keywordtype">void</span> OutputText(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">char</span>* text);
11900136         <span class="keywordtype">void</span> FlipBuffers(<span class="keywordtype">void</span>);
12000137         <span class="keywordtype">bool</span> RunningFullScreen(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
12100138         RECT ViewportRect(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
12200139
12300140         <span class="comment">// Capabilities</span>
12400141         <span class="keywordtype">bool</span> Has3DAcceleration(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
12500142         <span class="keywordtype">bool</span> CanRenderWindowed(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
12600143
12700144         <span class="comment">// Generalised info</span>
12800145         <span class="keywordtype">void</span> GetDisplayDetails(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>&amp; width, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>&amp; height, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>&amp; colourDepth);
12900146     };
13000147 }
13100148
13200149 <span class="preprocessor">#endif</span>
133</pre></div><hr>
134<p>
135Copyright &copy; 2000-2005 by The OGRE Team<br />
136<!--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/>
137This 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/>
138                <!--/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#">
139                <Work rdf:about="">
140                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
141        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
142                </Work>
143                <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> -->
144
145Last modified Sun Feb 12 12:59:44 2006
146</p>
147</body>
148</html>
Note: See TracBrowser for help on using the repository browser.