28 #ifndef __D3D9PIXELBUFFER_H__ 29 #define __D3D9PIXELBUFFER_H__ 38 class D3D9RenderTexture;
86 void unlockImpl(
void);
93 void updateRenderTexture(
bool writeGamma,
uint fsaa,
const String& srcName);
95 void destroyRenderTexture();
111 void bind(IDirect3DDevice9 *dev, IDirect3DSurface9 *mSurface, IDirect3DSurface9* fsaaSurface,
112 bool writeGamma,
uint fsaa,
const String& srcName, IDirect3DBaseTexture9 *mipTex);
113 void bind(IDirect3DDevice9 *dev, IDirect3DVolume9 *mVolume, IDirect3DBaseTexture9 *mipTex);
125 void _genMipmaps(IDirect3DBaseTexture9* mipTex);
128 void _setMipmapping(
bool doMipmapGen,
bool HWMipmaps);
135 IDirect3DSurface9 *getSurface(IDirect3DDevice9* d3d9Device);
138 IDirect3DSurface9 *getFSAASurface(IDirect3DDevice9* d3d9Device);
141 virtual void _clearSliceRTT(
size_t zoffset);
144 void releaseSurfaces(IDirect3DDevice9* d3d9Device);
147 void destroyBufferResources(IDirect3DDevice9* d3d9Device);
151 static void lockDeviceAccess();
155 static void unlockDeviceAccess();
bool mDoMipmapGen
Mipmapping.
Specialisation of HardwareBuffer for a pixel buffer.
IDirect3DSurface9 * tempSurface
Temporary surface in main memory if direct locking of mSurface is not possible.
IDirect3DSurface9 * surface
Surface abstracted by this buffer.
DeviceToBufferResourcesMap mMapDeviceToBufferResources
Map between device to buffer resources.
Structure used to define a box in a 3-D integer space.
D3D9RenderTexture * mRenderTexture
Render target.
IDirect3DVolume9 * tempVolume
Temporary volume in main memory if direct locking of mVolume is not possible.
D3D9Texture * mOwnerTexture
map< IDirect3DDevice9 *, BufferResources * >::type DeviceToBufferResourcesMap
This class represents a RenderTarget that renders to a Texture.
Usage
Enums describing buffer usage; not mutually exclusive.
Shared pointer implementation used to share pixel buffers.
LockOptions
Locking options.
This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info...
RenderTexture implementation for D3D9.
#define OGRE_STATIC_MUTEX(name)
IDirect3DBaseTexture9 * mipTex
Mip map texture.
IDirect3DVolume9 * volume
Volume abstracted by this buffer.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
DeviceToBufferResourcesMap::iterator DeviceToBufferResourcesIterator
IDirect3DSurface9 * fSAASurface
AA Surface abstracted by this buffer.