<html> <head> <title>OgreD3D7Texture.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <!-- Generated by Doxygen 1.3.6 --> <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> <h1>OgreD3D7Texture.h</h1><a href="OgreD3D7Texture_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> 00002 <span class="comment">-----------------------------------------------------------------------------</span> 00003 <span class="comment">This source file is part of OGRE</span> 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> 00006 <span class="comment"></span> 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> 00008 <span class="comment">Also see acknowledgements in Readme.html</span> 00009 <span class="comment"></span> 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> 00013 <span class="comment">version.</span> 00014 <span class="comment"></span> 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> 00018 <span class="comment"></span> 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> 00023 <span class="comment">-----------------------------------------------------------------------------</span> 00024 <span class="comment">*/</span> 00025 <span class="preprocessor">#ifndef _D3DTexture_H__</span> 00026 <span class="preprocessor"></span><span class="preprocessor">#define _D3DTexture_H__</span> 00027 <span class="preprocessor"></span> 00028 <span class="preprocessor">#include "<a class="code" href="OgreD3D7Prerequisites_8h.html">OgreD3D7Prerequisites.h</a>"</span> 00029 <span class="preprocessor">#include "<a class="code" href="OgreTexture_8h.html">OgreTexture.h</a>"</span> 00030 <span class="preprocessor">#include "<a class="code" href="OgreRenderTarget_8h.html">OgreRenderTarget.h</a>"</span> 00031 <span class="preprocessor">#include "<a class="code" href="OgreRenderTexture_8h.html">OgreRenderTexture.h</a>"</span> 00032 <span class="preprocessor">#include "<a class="code" href="OgreRenderTargetListener_8h.html">OgreRenderTargetListener.h</a>"</span> 00033 <span class="preprocessor">#include "<a class="code" href="OgreD3D7HardwarePixelBuffer_8h.html">OgreD3D7HardwarePixelBuffer.h</a>"</span> 00034 00035 <span class="keyword">namespace </span>Ogre { 00036 <a name="l00039"></a><a class="code" href="classOgre_1_1D3DTexture.html">00039</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a> : <span class="keyword">public</span> <a class="code" href="classOgre_1_1Texture.html">Texture</a> 00040 { 00041 <span class="keyword">public</span>: 00042 <span class="comment">// Constructor, called from D3DTextureManager</span> 00043 <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturea0">D3DTexture</a>(<a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* creator, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <a class="code" href="namespaceOgre.html#a485">ResourceHandle</a> handle, 00044 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& group, <span class="keywordtype">bool</span> isManual, <a class="code" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a>* loader, 00045 IDirect3DDevice7 * lpDirect3dDevice); 00046 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturea1">~D3DTexture</a>(); 00047 00048 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturea2">loadImage</a>( <span class="keyword">const</span> <a class="code" href="classOgre_1_1Image.html">Image</a> &img ); 00049 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturea3">loadImage3D</a>( <span class="keyword">const</span> <a class="code" href="classOgre_1_1Image.html">Image</a> imgs[]); 00050 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturea4">copyToTexture</a>(<a class="code" href="classOgre_1_1TexturePtr.html">TexturePtr</a>& target ); 00051 00053 LPDIRECTDRAWSURFACE7 <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturea5">getDDSurface</a>(<span class="keywordtype">void</span>); 00054 00056 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturea6">createInternalResources</a>(<span class="keywordtype">void</span>); 00057 00059 <a class="code" href="classOgre_1_1HardwarePixelBufferSharedPtr.html">HardwarePixelBufferSharedPtr</a> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturea7">getBuffer</a>(size_t face, size_t mipmap); 00060 00062 <span class="keyword">static</span> D3DX_SURFACEFORMAT <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturee0">OgreFormat_to_D3DXFormat</a>( <a class="code" href="namespaceOgre.html#a666">PixelFormat</a> format ); 00063 <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a666">PixelFormat</a> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturee1">closestD3DXFormat</a>( <a class="code" href="namespaceOgre.html#a666">PixelFormat</a> format ); 00064 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturee2">OgreFormat_to_DDPixelFormat</a>( <a class="code" href="namespaceOgre.html#a666">PixelFormat</a> format, DDPIXELFORMAT & out ); 00065 <span class="keyword">protected</span>: <a name="l00066"></a><a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturep0">00066</a> IDirect3DDevice7 * mD3DDevice; <a name="l00067"></a><a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturep1">00067</a> IDirectDrawSurface7 * mSurface; 00068 <a name="l00069"></a><a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturep2">00069</a> <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturep2">mCubeFaceNames</a>[6]; <a name="l00071"></a><a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturex0">00071</a> <span class="keyword">typedef</span> std::vector<HardwarePixelBufferSharedPtr> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturex0">SurfaceList</a>; <a name="l00072"></a><a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturep3">00072</a> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturex0">SurfaceList</a> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturep3">mSurfaceList</a>; 00073 00074 00076 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb0">loadImpl</a>(<span class="keywordtype">void</span>); 00078 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb1">unloadImpl</a>(<span class="keywordtype">void</span>); 00079 00080 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb2">createSurface2D</a>(<span class="keywordtype">void</span>); 00081 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb3">createSurface3D</a>(<span class="keywordtype">void</span>); 00082 00084 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb4">_chooseD3DFormat</a>(DDPIXELFORMAT &ddpf); 00085 00087 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb5">_constructCubeFaceNames</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> name); 00088 <a name="l00090"></a><a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb6">00090</a> <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb6">_getCubeFaceName</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> face)<span class="keyword"> const</span> 00091 <span class="keyword"> </span>{ assert(face < 6); <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTexturep2">mCubeFaceNames</a>[face]; } 00092 00093 <span class="comment">// Create the list of surfaces</span> 00094 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3DTexture.html#Ogre_1_1D3DTextureb7">_createSurfaceList</a>(); 00095 }; 00096 <a name="l00103"></a><a class="code" href="classOgre_1_1D3DTexturePtr.html">00103</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1D3DTexturePtr.html">D3DTexturePtr</a> : <span class="keyword">public</span> <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><D3DTexture> 00104 { 00105 <span class="keyword">public</span>: <a name="l00106"></a><a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra0">00106</a> <a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra0">D3DTexturePtr</a>() : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>>() {} <a name="l00107"></a><a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra1">00107</a> <span class="keyword">explicit</span> <a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra0">D3DTexturePtr</a>(<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>* rep) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>>(rep) {} <a name="l00108"></a><a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra2">00108</a> <a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra0">D3DTexturePtr</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1D3DTexturePtr.html">D3DTexturePtr</a>& r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>>(r) {} <a name="l00109"></a><a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra3">00109</a> <a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra0">D3DTexturePtr</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>>() 00110 { 00111 <span class="comment">// lock & copy other mutex pointer</span> 00112 <a class="code" href="OgrePrerequisites_8h.html#a14">OGRE_LOCK_MUTEX</a>(*r.OGRE_AUTO_MUTEX_NAME) 00113 <a class="code" href="OgrePrerequisites_8h.html#a19">OGRE_COPY_AUTO_SHARED_MUTEX</a>(r.OGRE_AUTO_MUTEX_NAME) 00114 pRep = static_cast<D3DTexture*>(r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra12">getPointer</a>()); 00115 pUseCount = r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra11">useCountPointer</a>(); 00116 <span class="keywordflow">if</span> (pUseCount) 00117 { 00118 ++(*pUseCount); 00119 } 00120 } 00121 <a name="l00123"></a><a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra4">00123</a> <a class="code" href="classOgre_1_1D3DTexturePtr.html">D3DTexturePtr</a>& <a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra4">operator=</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& r) 00124 { 00125 <span class="keywordflow">if</span> (pRep == static_cast<D3DTexture*>(r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra12">getPointer</a>())) 00126 <span class="keywordflow">return</span> *<span class="keyword">this</span>; 00127 <a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtrb0">release</a>(); 00128 <span class="comment">// lock & copy other mutex pointer</span> 00129 <a class="code" href="OgrePrerequisites_8h.html#a14">OGRE_LOCK_MUTEX</a>(*r.OGRE_AUTO_MUTEX_NAME) 00130 <a class="code" href="OgrePrerequisites_8h.html#a19">OGRE_COPY_AUTO_SHARED_MUTEX</a>(r.OGRE_AUTO_MUTEX_NAME) 00131 pRep = static_cast<D3DTexture*>(r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra12">getPointer</a>()); 00132 pUseCount = r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra11">useCountPointer</a>(); 00133 <span class="keywordflow">if</span> (pUseCount) 00134 { 00135 ++(*pUseCount); 00136 } 00137 <span class="keywordflow">return</span> *<span class="keyword">this</span>; 00138 } <a name="l00140"></a><a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra5">00140</a> <a class="code" href="classOgre_1_1D3DTexturePtr.html">D3DTexturePtr</a>& <a class="code" href="classOgre_1_1D3DTexturePtr.html#Ogre_1_1D3DTexturePtra4">operator=</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1TexturePtr.html">TexturePtr</a>& r) 00141 { 00142 <span class="keywordflow">if</span> (pRep == static_cast<D3DTexture*>(r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra12">getPointer</a>())) 00143 <span class="keywordflow">return</span> *<span class="keyword">this</span>; 00144 <a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtrb0">release</a>(); 00145 pRep = static_cast<D3DTexture*>(r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra12">getPointer</a>()); 00146 pUseCount = r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra11">useCountPointer</a>(); 00147 <span class="keywordflow">if</span> (pUseCount) 00148 { 00149 ++(*pUseCount); 00150 } 00151 <span class="keywordflow">return</span> *<span class="keyword">this</span>; 00152 } 00153 }; 00154 00155 <a name="l00157"></a><a class="code" href="classOgre_1_1D3D7RenderTexture.html">00157</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1D3D7RenderTexture.html">D3D7RenderTexture</a> : <span class="keyword">public</span> <a class="code" href="classOgre_1_1RenderTexture.html">RenderTexture</a> 00158 { 00159 <span class="keyword">public</span>: <a name="l00160"></a><a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea0">00160</a> <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea0">D3D7RenderTexture</a>( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> & name, 00161 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height, 00162 TextureType texType, PixelFormat internalFormat, 00163 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> *misc ) 00164 : <a class="code" href="classOgre_1_1RenderTexture.html">RenderTexture</a>( name, width, height, texType, internalFormat ) 00165 { 00166 <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a> = TextureManager::getSingleton().createManual(mName + 00167 <span class="stringliteral">"_PRIVATE##"</span>, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, 00168 texType, mWidth, mHeight, 0, internalFormat, <a class="code" href="namespaceOgre.html#a679a543">TU_RENDERTARGET</a>); 00169 <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a>->createInternalResources(); 00170 } 00171 <a name="l00172"></a><a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea1">00172</a> <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea1">~D3D7RenderTexture</a>() 00173 { 00174 <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a>->unload(); 00175 TextureManager::getSingleton().remove(<a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a>->getName()); 00176 } 00177 <a name="l00178"></a><a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea2">00178</a> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea2">requiresTextureFlipping</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; } 00179 <a name="l00180"></a><a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea3">00180</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea3">getCustomAttribute</a>( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <span class="keywordtype">void</span>* pData ) 00181 { 00182 <span class="keywordflow">if</span>( name == <span class="stringliteral">"DDBACKBUFFER"</span> ) 00183 { 00184 LPDIRECTDRAWSURFACE7 *pSurf = (LPDIRECTDRAWSURFACE7*)pData; 00185 00186 *pSurf = <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a>->getDDSurface(); 00187 <span class="keywordflow">return</span>; 00188 } 00189 <span class="keywordflow">else</span> <span class="keywordflow">if</span>( name == <span class="stringliteral">"DDFRONTBUFFER"</span> ) 00190 { 00191 LPDIRECTDRAWSURFACE7 *pSurf = (LPDIRECTDRAWSURFACE7*)pData; 00192 00193 *pSurf = <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a>->getDDSurface(); 00194 <span class="keywordflow">return</span>; 00195 } 00196 <span class="keywordflow">else</span> <span class="keywordflow">if</span>( name == <span class="stringliteral">"HWND"</span> ) 00197 { 00198 HWND *pHwnd = (HWND*)pData; 00199 00200 *pHwnd = NULL; 00201 <span class="keywordflow">return</span>; 00202 } 00203 <span class="keywordflow">else</span> <span class="keywordflow">if</span>( name == <span class="stringliteral">"isTexture"</span> ) 00204 { 00205 <span class="keywordtype">bool</span> *b = reinterpret_cast< bool * >( pData ); 00206 *b = <span class="keyword">true</span>; 00207 00208 <span class="keywordflow">return</span>; 00209 } 00210 } <a name="l00211"></a><a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea4">00211</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturea4">writeContentsToFile</a>( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> & filename ) {} 00212 00213 <span class="keyword">protected</span>: <a name="l00215"></a><a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">00215</a> <a class="code" href="classOgre_1_1D3DTexturePtr.html">D3DTexturePtr</a> <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a>; 00216 00217 <span class="keyword">protected</span>: <a name="l00218"></a><a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTextureb0">00218</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTextureb0">_copyToTexture</a>() 00219 { 00220 <span class="comment">// Copy the newly-rendered data to the public texture surface.</span> 00221 <a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a>->copyToTexture( mTexture ); 00222 } 00223 }; 00224 } 00225 00226 <span class="preprocessor">#endif</span> </pre></div><p> Copyright © 2000-2005 by The OGRE Team<br /> Last modified Wed Feb 23 00:19:04 2005 </p> </body> </html>