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

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

added ogre dependencies and patched ogre sources

Line 
1<html>
2<head>
3<title>OgreD3D9RenderSystem.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>OgreD3D9RenderSystem.h</h1><a href="OgreD3D9RenderSystem_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://ogre.sourceforge.net/</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 __D3D9RENDERSYSTEM_H__</span>
3500026 <span class="preprocessor"></span><span class="preprocessor">#define __D3D9RENDERSYSTEM_H__</span>
3600027 <span class="preprocessor"></span>
3700028 <span class="preprocessor">#include "<a class="code" href="OgreD3D9Prerequisites_8h.html">OgreD3D9Prerequisites.h</a>"</span>
3800029 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span>
3900030 <span class="preprocessor">#include "<a class="code" href="OgreStringConverter_8h.html">OgreStringConverter.h</a>"</span>
4000031 <span class="preprocessor">#include "<a class="code" href="OgreRenderSystem_8h.html">OgreRenderSystem.h</a>"</span>
4100032 <span class="preprocessor">#include "<a class="code" href="OgreD3D9Mappings_8h.html">OgreD3D9Mappings.h</a>"</span>
4200033
4300034 <span class="preprocessor">#include "<a class="code" href="OgreNoMemoryMacros_8h.html">OgreNoMemoryMacros.h</a>"</span>
4400035 <span class="preprocessor">#include &lt;d3d9.h&gt;</span>
4500036 <span class="preprocessor">#include &lt;d3dx9.h&gt;</span>
4600037 <span class="preprocessor">#include &lt;dxerr9.h&gt;</span>
4700038 <span class="preprocessor">#include "<a class="code" href="OgreMemoryMacros_8h.html">OgreMemoryMacros.h</a>"</span>
4800039
4900040 <span class="keyword">namespace </span>Ogre
5000041 {
51<a name="l00042"></a><a class="code" href="OgreD3D9RenderSystem_8h.html#a0">00042</a> <span class="preprocessor">#define MAX_LIGHTS 8</span>
5200043 <span class="preprocessor"></span>
5300044     <span class="keyword">class </span>D3D9DriverList;
5400045     <span class="keyword">class </span>D3D9Driver;
5500046
56<a name="l00050"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html">00050</a>     <span class="keyword">class </span><a class="code" href="classOgre_1_1D3D9RenderSystem.html">D3D9RenderSystem</a> : <span class="keyword">public</span> <a class="code" href="classOgre_1_1RenderSystem.html">RenderSystem</a>
5700051     {
5800052     <span class="keyword">private</span>:
59<a name="l00054"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr0">00054</a>         LPDIRECT3D9         mpD3D;
60<a name="l00056"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr1">00056</a>         LPDIRECT3DDEVICE9   mpD3DDevice;
6100057         
6200058         <span class="comment">// Stored options</span>
63<a name="l00059"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr2">00059</a>         <a class="code" href="namespaceOgre.html#a114">ConfigOptionMap</a> mOptions;
64<a name="l00061"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr3">00061</a>         D3DMULTISAMPLE_TYPE <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr3">mFSAAType</a>;
65<a name="l00063"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr4">00063</a>         DWORD <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr4">mFSAAQuality</a>;
6600064
67<a name="l00066"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr5">00066</a>         HINSTANCE mhInstance;
6800067
69<a name="l00069"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr6">00069</a>         <a class="code" href="classOgre_1_1D3D9DriverList.html">D3D9DriverList</a>* mDriverList;
70<a name="l00071"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr7">00071</a>         <a class="code" href="classOgre_1_1D3D9Driver.html">D3D9Driver</a>* <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr7">mActiveD3DDriver</a>;
71<a name="l00073"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr8">00073</a>         D3DCAPS9 <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr8">mCaps</a>;
7200074
73<a name="l00076"></a><a class="code" href="structOgre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesc.html">00076</a>         <span class="keyword">struct </span><a class="code" href="structOgre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesc.html">sD3DTextureStageDesc</a>
7400077         {
75<a name="l00079"></a><a class="code" href="structOgre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesc.html#Ogre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesco0">00079</a>             D3D9Mappings::eD3DTexType texType;
76<a name="l00081"></a><a class="code" href="structOgre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesc.html#Ogre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesco1">00081</a>             size_t coordIndex;
77<a name="l00083"></a><a class="code" href="structOgre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesc.html#Ogre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesco2">00083</a>             <a class="code" href="namespaceOgre.html#a670">TexCoordCalcMethod</a> autoTexCoordType;
78<a name="l00085"></a><a class="code" href="structOgre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesc.html#Ogre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesco3">00085</a>             <span class="keyword">const</span> <a class="code" href="classOgre_1_1Frustum.html">Frustum</a> *frustum;
79<a name="l00087"></a><a class="code" href="structOgre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesc.html#Ogre_1_1D3D9RenderSystem_1_1sD3DTextureStageDesco4">00087</a>             IDirect3DBaseTexture9 *pTex;
8000088         } mTexStageDesc[<a class="code" href="OgreConfig_8h.html#a7">OGRE_MAX_TEXTURE_LAYERS</a>];
8100089
8200090         <span class="comment">// Array of up to 8 lights, indexed as per API</span>
8300091         <span class="comment">// Note that a null value indeicates a free slot</span>
84<a name="l00092"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr10">00092</a>         <a class="code" href="classOgre_1_1Light.html">Light</a>* mLights[<a class="code" href="OgreD3D9RenderSystem_8h.html#a0">MAX_LIGHTS</a>];
8500093
8600094         <a class="code" href="classOgre_1_1D3D9DriverList.html">D3D9DriverList</a>* <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd0">getDirect3DDrivers</a>(<span class="keywordtype">void</span>);
8700095         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd1">refreshD3DSettings</a>(<span class="keywordtype">void</span>);
8800096         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd2">freeDevice</a>(<span class="keywordtype">void</span>);
8900097
9000098         <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd3">compareDecls</a>( D3DVERTEXELEMENT9* pDecl1, D3DVERTEXELEMENT9* pDecl2, size_t size );
9100099
9200100
9300101         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd4">initInputDevices</a>(<span class="keywordtype">void</span>);
9400102         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd5">processInputDevices</a>(<span class="keywordtype">void</span>);
9500103         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd6">setD3D9Light</a>( size_t index, <a class="code" href="classOgre_1_1Light.html">Light</a>* light );
9600104         
9700105         <span class="comment">// state management methods, very primitive !!!</span>
9800106         HRESULT <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd7">__SetRenderState</a>(D3DRENDERSTATETYPE state, DWORD value);
9900107         HRESULT <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd8">__SetSamplerState</a>(DWORD sampler, D3DSAMPLERSTATETYPE type, DWORD value);
10000108         HRESULT <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd9">__SetTextureStageState</a>(DWORD stage, D3DTEXTURESTAGESTATETYPE type, DWORD value);
10100109
102<a name="l00110"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd10">00110</a>         HRESULT <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd10">__SetFloatRenderState</a>(D3DRENDERSTATETYPE state, <a class="code" href="namespaceOgre.html#a420">Real</a> value)
10300111         {
10400112 <span class="preprocessor">#if OGRE_DOUBLE_PRECISION == 1</span>
10500113 <span class="preprocessor"></span>            <span class="keywordtype">float</span> temp = static_cast&lt;float&gt;(value);
10600114             <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd7">__SetRenderState</a>(state, *((LPDWORD)(&amp;temp)));
10700115 <span class="preprocessor">#else</span>
10800116 <span class="preprocessor"></span>            <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd7">__SetRenderState</a>(state, *((LPDWORD)(&amp;value)));
10900117 <span class="preprocessor">#endif</span>
11000118 <span class="preprocessor"></span>        }
11100119
11200121         DWORD <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd11">_getCurrentAnisotropy</a>(size_t unit);
11300123         <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd12">_checkMultiSampleQuality</a>(D3DMULTISAMPLE_TYPE type, DWORD *outQuality, D3DFORMAT format, UINT adapterNum, D3DDEVTYPE deviceType, BOOL fullScreen);
11400125         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd13">_setFSAA</a>(D3DMULTISAMPLE_TYPE type, DWORD qualityLevel);
11500126         
116<a name="l00127"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr11">00127</a>         <a class="code" href="classOgre_1_1D3D9HardwareBufferManager.html">D3D9HardwareBufferManager</a>* mHardwareBufferManager;
117<a name="l00128"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr12">00128</a>         <a class="code" href="classOgre_1_1D3D9GpuProgramManager.html">D3D9GpuProgramManager</a>* mGpuProgramManager;
11800129         <span class="comment">//D3D9HLSLProgramFactory* mHLSLProgramFactory;</span>
11900130
120<a name="l00131"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr13">00131</a>         size_t <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr13">mLastVertexSourceCount</a>;
12100132
12200133
12300135         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd14">initCapabilities</a>(<span class="keywordtype">void</span>);
12400136
12500137         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd15">convertVertexShaderCaps</a>(<span class="keywordtype">void</span>);
12600138         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemd16">convertPixelShaderCaps</a>(<span class="keywordtype">void</span>);
12700139
128<a name="l00140"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr14">00140</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> mCurrentLights;
129<a name="l00142"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr15">00142</a>         <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> mViewMatrix;
13000143
13100144         <span class="comment">// What follows is a set of duplicated lists just to make it</span>
13200145         <span class="comment">// easier to deal with lost devices</span>
13300146         
134<a name="l00148"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr16">00148</a>         <a class="code" href="classOgre_1_1D3D9RenderWindow.html">D3D9RenderWindow</a>* <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr16">mPrimaryWindow</a>;
13500149
136<a name="l00150"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemy0">00150</a>         <span class="keyword">typedef</span> std::vector&lt;D3D9RenderWindow*&gt; <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemy0">SecondaryWindowList</a>;
13700151         <span class="comment">// List of additional windows after the first (swap chains)</span>
138<a name="l00152"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr17">00152</a>         <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemy0">SecondaryWindowList</a> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr17">mSecondaryWindows</a>;
13900153
140<a name="l00154"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr18">00154</a>         <span class="keywordtype">bool</span> mDeviceLost;
141<a name="l00155"></a><a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr19">00155</a>         <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystemr19">mBasicStatesInitialised</a>;
14200156
14300157     <span class="keyword">public</span>:
14400158         <span class="comment">// constructor</span>
14500159         <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema0">D3D9RenderSystem</a>( HINSTANCE hInstance );
14600160         <span class="comment">// destructor</span>
14700161         <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema1">~D3D9RenderSystem</a>();
14800162
14900163         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema2">initConfigOptions</a>(<span class="keywordtype">void</span>);
15000164
15100165         <span class="comment">// Overridden RenderSystem functions</span>
15200166         <a class="code" href="namespaceOgre.html#a114">ConfigOptionMap</a>&amp; <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema3">getConfigOptions</a>(<span class="keywordtype">void</span>);
15300167         <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema4">validateConfigOptions</a>(<span class="keywordtype">void</span>);
15400168         <a class="code" href="classOgre_1_1RenderWindow.html">RenderWindow</a>* <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema5">initialise</a>( <span class="keywordtype">bool</span> autoCreateWindow, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; windowTitle = <span class="stringliteral">"OGRE Render Window"</span>  );
15500170         <a class="code" href="classOgre_1_1RenderWindow.html">RenderWindow</a>* <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema6">createRenderWindow</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &amp;name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height,
15600171             <span class="keywordtype">bool</span> fullScreen, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *miscParams = 0);
15700172
15800174         <a class="code" href="classOgre_1_1RenderTexture.html">RenderTexture</a> * <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema7">createRenderTexture</a>( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &amp; name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height,
15900175             TextureType texType = TEX_TYPE_2D, PixelFormat internalFormat = PF_X8R8G8B8,
16000176             <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *miscParams = 0 );
16100177
16200178         <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema8">getErrorDescription</a>( <span class="keywordtype">long</span> errorNumber ) <span class="keyword">const</span>;
16300179         <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema9">getName</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16400180         <span class="comment">// Low-level overridden members</span>
16500181         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema10">setConfigOption</a>( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &amp;name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &amp;value );
16600182         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema11">reinitialise</a>();
16700183         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema12">shutdown</a>();
16800184         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema13">setAmbientLight</a>( <span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b );
16900185         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema14">setShadingType</a>( ShadeOptions so );
17000186         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema15">setLightingEnabled</a>( <span class="keywordtype">bool</span> enabled );
17100187         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema16">destroyRenderTarget</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; name);
17200188         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema17">convertColourValue</a>( <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>&amp; colour, <a class="code" href="namespaceOgre.html#a412">uint32</a>* pDest );
17300189         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema18">setStencilCheckEnabled</a>(<span class="keywordtype">bool</span> enabled);
17400190         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema19">setStencilBufferParams</a>(CompareFunction func = CMPF_ALWAYS_PASS,
17500191             <a class="code" href="namespaceOgre.html#a412">uint32</a> refValue = 0, <a class="code" href="namespaceOgre.html#a412">uint32</a> mask = 0xFFFFFFFF,
17600192             StencilOperation stencilFailOp = SOP_KEEP,
17700193             StencilOperation depthFailOp = SOP_KEEP,
17800194             StencilOperation passOp = SOP_KEEP,
17900195             <span class="keywordtype">bool</span> twoSidedOperation = <span class="keyword">false</span>);
18000196         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema20">setNormaliseNormals</a>(<span class="keywordtype">bool</span> normalise);
18100197
18200198         <span class="comment">// Low-level overridden members, mainly for internal use</span>
18300199         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema21">_useLights</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a59">LightList</a>&amp; lights, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> limit);
18400200         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema22">_setWorldMatrix</a>( <span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> &amp;m );
18500201         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema23">_setViewMatrix</a>( <span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> &amp;m );
18600202         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema24">_setProjectionMatrix</a>( <span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> &amp;m );
18700203         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema25">_setSurfaceParams</a>( <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> &amp;ambient, <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> &amp;diffuse, <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> &amp;specular, <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> &amp;emissive, <a class="code" href="namespaceOgre.html#a420">Real</a> shininess, <a class="code" href="namespaceOgre.html#a58">TrackVertexColourType</a> tracking );
18800204         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema26">_setTexture</a>( size_t unit, <span class="keywordtype">bool</span> enabled, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &amp;texname );
18900205         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema27">_setTextureCoordSet</a>( size_t unit, size_t index );
19000206         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema28">_setTextureCoordCalculation</a>(size_t unit, TexCoordCalcMethod m,
19100207             <span class="keyword">const</span> <a class="code" href="classOgre_1_1Frustum.html">Frustum</a>* frustum = 0);
19200208         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema29">_setTextureBlendMode</a>( size_t unit, <span class="keyword">const</span> <a class="code" href="classOgre_1_1LayerBlendModeEx.html">LayerBlendModeEx</a>&amp; bm );
19300209         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema30">_setTextureAddressingMode</a>( size_t unit, TextureUnitState::TextureAddressingMode tam );
19400210         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema31">_setTextureMatrix</a>( size_t unit, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> &amp;xform );
19500211         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema32">_setSceneBlending</a>( SceneBlendFactor sourceFactor, SceneBlendFactor destFactor );
19600212         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema33">_setAlphaRejectSettings</a>( CompareFunction func, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> value );
19700213         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema34">_setViewport</a>( <a class="code" href="classOgre_1_1Viewport.html">Viewport</a> *vp );
19800214         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema35">_beginFrame</a>(<span class="keywordtype">void</span>);
19900215         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema36">_endFrame</a>(<span class="keywordtype">void</span>);
20000216         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema37">_setCullingMode</a>( CullingMode mode );
20100217         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema38">_setDepthBufferParams</a>( <span class="keywordtype">bool</span> depthTest = <span class="keyword">true</span>, <span class="keywordtype">bool</span> depthWrite = <span class="keyword">true</span>, CompareFunction depthFunction = CMPF_LESS_EQUAL );
20200218         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema39">_setDepthBufferCheckEnabled</a>( <span class="keywordtype">bool</span> enabled = <span class="keyword">true</span> );
20300219         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema40">_setColourBufferWriteEnabled</a>(<span class="keywordtype">bool</span> red, <span class="keywordtype">bool</span> green, <span class="keywordtype">bool</span> blue, <span class="keywordtype">bool</span> alpha);
20400220         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema41">_setDepthBufferWriteEnabled</a>(<span class="keywordtype">bool</span> enabled = <span class="keyword">true</span>);
20500221         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema42">_setDepthBufferFunction</a>( CompareFunction func = CMPF_LESS_EQUAL );
20600222         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema43">_setDepthBias</a>(<a class="code" href="namespaceOgre.html#a422">ushort</a> bias);
20700223         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema44">_setFog</a>( FogMode mode = FOG_NONE, <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>&amp; colour = ColourValue::White, <a class="code" href="namespaceOgre.html#a420">Real</a> expDensity = 1.0, <a class="code" href="namespaceOgre.html#a420">Real</a> linearStart = 0.0, <a class="code" href="namespaceOgre.html#a420">Real</a> linearEnd = 1.0 );
20800224         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema45">_makeProjectionMatrix</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>&amp; fovy, <a class="code" href="namespaceOgre.html#a420">Real</a> aspect, <a class="code" href="namespaceOgre.html#a420">Real</a> nearPlane, <a class="code" href="namespaceOgre.html#a420">Real</a> farPlane,
20900225             <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>&amp; dest, <span class="keywordtype">bool</span> forGpuProgram = <span class="keyword">false</span>);
21000226         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema45">_makeProjectionMatrix</a>(<a class="code" href="namespaceOgre.html#a420">Real</a> left, <a class="code" href="namespaceOgre.html#a420">Real</a> right, <a class="code" href="namespaceOgre.html#a420">Real</a> bottom, <a class="code" href="namespaceOgre.html#a420">Real</a> top, <a class="code" href="namespaceOgre.html#a420">Real</a> nearPlane,
21100227             <a class="code" href="namespaceOgre.html#a420">Real</a> farPlane, <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>&amp; dest, <span class="keywordtype">bool</span> forGpuProgram = <span class="keyword">false</span>);
21200228         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema47">_makeOrthoMatrix</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>&amp; fovy, <a class="code" href="namespaceOgre.html#a420">Real</a> aspect, <a class="code" href="namespaceOgre.html#a420">Real</a> nearPlane, <a class="code" href="namespaceOgre.html#a420">Real</a> farPlane,
21300229             <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>&amp; dest, <span class="keywordtype">bool</span> forGpuProgram = <span class="keyword">false</span>);
21400230         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema48">_applyObliqueDepthProjection</a>(<a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>&amp; matrix, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Plane.html">Plane</a>&amp; plane,
21500231             <span class="keywordtype">bool</span> forGpuProgram);
21600232         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema49">_setRasterisationMode</a>(SceneDetailLevel level);
21700233         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema50">_setTextureUnitFiltering</a>(size_t unit, FilterType ftype, FilterOptions filter);
21800234         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema51">_setTextureLayerAnisotropy</a>(size_t unit, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> maxAnisotropy);
21900235         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema52">setVertexDeclaration</a>(<a class="code" href="classOgre_1_1VertexDeclaration.html">VertexDeclaration</a>* decl);
22000236         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema53">setVertexBufferBinding</a>(<a class="code" href="classOgre_1_1VertexBufferBinding.html">VertexBufferBinding</a>* binding);
22100237         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema54">_render</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1RenderOperation.html">RenderOperation</a>&amp; op);
22200238         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema55">bindGpuProgram</a>(<a class="code" href="classOgre_1_1GpuProgram.html">GpuProgram</a>* prg);
22300239         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema56">unbindGpuProgram</a>(GpuProgramType gptype);
22400240         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema57">bindGpuProgramParameters</a>(GpuProgramType gptype, <a class="code" href="classOgre_1_1SharedPtr.html">GpuProgramParametersSharedPtr</a> <a class="code" href="OgreGLPrerequisites_8h.html#a74">params</a>);
22500244         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema58">setClipPlanes</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a410">PlaneList</a>&amp; clipPlanes);
22600245
22700246         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema59">setScissorTest</a>(<span class="keywordtype">bool</span> enabled, size_t left = 0, size_t top = 0, size_t right = 800, size_t bottom = 600);
22800247         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema60">clearFrameBuffer</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> buffers,
22900248             <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>&amp; colour = ColourValue::Black,
23000249             <a class="code" href="namespaceOgre.html#a420">Real</a> depth = 1.0f, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> stencil = 0);
23100250         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema61">setClipPlane</a> (<a class="code" href="namespaceOgre.html#a422">ushort</a> index, <a class="code" href="namespaceOgre.html#a420">Real</a> A, <a class="code" href="namespaceOgre.html#a420">Real</a> B, <a class="code" href="namespaceOgre.html#a420">Real</a> C, <a class="code" href="namespaceOgre.html#a420">Real</a> D);
23200251         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema62">enableClipPlane</a> (<a class="code" href="namespaceOgre.html#a422">ushort</a> index, <span class="keywordtype">bool</span> enable);
23300252         <a class="code" href="classOgre_1_1HardwareOcclusionQuery.html">HardwareOcclusionQuery</a>* <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema63">createHardwareOcclusionQuery</a>(<span class="keywordtype">void</span>);
23400253         <a class="code" href="namespaceOgre.html#a420">Real</a> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema64">getHorizontalTexelOffset</a>(<span class="keywordtype">void</span>);
23500254         <a class="code" href="namespaceOgre.html#a420">Real</a> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema65">getVerticalTexelOffset</a>(<span class="keywordtype">void</span>);
23600255         <a class="code" href="namespaceOgre.html#a420">Real</a> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema66">getMinimumDepthInputValue</a>(<span class="keywordtype">void</span>);
23700256         <a class="code" href="namespaceOgre.html#a420">Real</a> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema67">getMaximumDepthInputValue</a>(<span class="keywordtype">void</span>);
23800257
23900259         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema68">restoreLostDevice</a>(<span class="keywordtype">void</span>);
24000261         <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema69">isDeviceLost</a>(<span class="keywordtype">void</span>);
24100263         <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D9RenderSystem.html#Ogre_1_1D3D9RenderSystema70">_notifyDeviceLost</a>(<span class="keywordtype">void</span>);
24200264
24300265
24400266
24500267     };
24600268 }
24700269 <span class="preprocessor">#endif</span>
248</pre></div><hr>
249<p>
250Copyright &copy; 2000-2005 by The OGRE Team<br />
251<!--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/>
252This 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/>
253                <!--/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#">
254                <Work rdf:about="">
255                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
256        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
257                </Work>
258                <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> -->
259
260Last modified Sun Feb 12 12:59:43 2006
261</p>
262</body>
263</html>
Note: See TracBrowser for help on using the repository browser.