Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > contrib > by-pkgid > 04e5d8c10ae76748689b4e7f48e0fa33 > files > 364

libogre5-devel-1.0.0-1mdk.i586.rpm

<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&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>
<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>&amp; 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>&amp; 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> &amp;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>&amp; 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 &amp; 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&lt;HardwarePixelBufferSharedPtr&gt; <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 &amp;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 &lt; 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>&lt;D3DTexture&gt; 
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>&lt;<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>&gt;() {}
<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>&lt;<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>&gt;(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>&amp; r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>&gt;(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>&amp; r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;<a class="code" href="classOgre_1_1D3DTexture.html">D3DTexture</a>&gt;()
00110         {
00111             <span class="comment">// lock &amp; 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&lt;D3DTexture*&gt;(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>&amp; <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>&amp; r)
00124         {
00125             <span class="keywordflow">if</span> (pRep == static_cast&lt;D3DTexture*&gt;(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 &amp; 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&lt;D3DTexture*&gt;(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>&amp; <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>&amp; r)
00141         {
00142             <span class="keywordflow">if</span> (pRep == static_cast&lt;D3DTexture*&gt;(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&lt;D3DTexture*&gt;(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> &amp; 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>-&gt;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>-&gt;unload();
00175             TextureManager::getSingleton().remove(<a class="code" href="classOgre_1_1D3D7RenderTexture.html#Ogre_1_1D3D7RenderTexturep0">mPrivateTex</a>-&gt;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>&amp; 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>-&gt;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>-&gt;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&lt; bool * &gt;( 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> &amp; 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>-&gt;copyToTexture( mTexture );
00222         }
00223     };
00224 }
00225 
00226 <span class="preprocessor">#endif</span>
</pre></div><p>
Copyright &copy; 2000-2005 by The OGRE Team<br />
Last modified Wed Feb 23 00:19:04 2005
</p>
</body>
</html>