28 #ifndef __D3D9PIXELBUFFER_H__
29 #define __D3D9PIXELBUFFER_H__
37 class D3D9RenderTexture;
85 void unlockImpl(
void);
92 void updateRenderTexture(
bool writeGamma,
uint fsaa, const
String& srcName);
94 void destroyRenderTexture();
110 void bind(IDirect3DDevice9 *dev, IDirect3DSurface9 *mSurface, IDirect3DSurface9* fsaaSurface,
111 bool writeGamma,
uint fsaa, const
String& srcName, IDirect3DBaseTexture9 *mipTex);
112 void bind(IDirect3DDevice9 *dev, IDirect3DVolume9 *mVolume, IDirect3DBaseTexture9 *mipTex);
124 void _genMipmaps(IDirect3DBaseTexture9* mipTex);
127 void _setMipmapping(
bool doMipmapGen,
bool HWMipmaps);
134 IDirect3DSurface9 *getSurface(IDirect3DDevice9* d3d9Device);
137 IDirect3DSurface9 *getFSAASurface(IDirect3DDevice9* d3d9Device);
140 virtual
void _clearSliceRTT(
size_t zoffset);
143 void releaseSurfaces(IDirect3DDevice9* d3d9Device);
146 void destroyBufferResources(IDirect3DDevice9* d3d9Device);
150 static
void lockDeviceAccess();
154 static
void unlockDeviceAccess();
IDirect3DVolume9 * tempVolume
Temporary volume in main memory if direct locking of mVolume is not possible.
IDirect3DSurface9 * tempSurface
Temporary surface in main memory if direct locking of mSurface is not possible.
IDirect3DBaseTexture9 * mipTex
Mip map texture.
This class represents a RenderTarget that renders to a Texture.
IDirect3DSurface9 * surface
Surface abstracted by this buffer.
#define OGRE_STATIC_MUTEX(name)
LockOptions
Locking options.
Structure used to define a box in a 3-D integer space.
map< IDirect3DDevice9 *, BufferResources * >::type DeviceToBufferResourcesMap
Usage
Enums describing buffer usage; not mutually exclusive.
IDirect3DSurface9 * fSAASurface
AA Surface abstracted by this buffer.
Shared pointer implementation used to share pixel buffers.
Class representing an image file.
Specialisation of HardwareBuffer for a pixel buffer.
RenderTexture implementation for D3D9.
Abstract class defining common features of hardware buffers.
D3D9RenderTexture * mRenderTexture
Render target.
IDirect3DVolume9 * volume
Volume abstracted by this buffer.
DeviceToBufferResourcesMap::iterator DeviceToBufferResourcesIterator
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
D3D9Texture * mOwnerTexture
DeviceToBufferResourcesMap mMapDeviceToBufferResources
Map between device to buffer resources.
bool mDoMipmapGen
Mipmapping.