Basicly I want to create something that I can draw to (instead of the screen) then use later like a texture.
Ive been trying to use this to create a surface I can set as the render target but I'm not sure what to use for one of the parameters...
IDirect3DDevice9::CreateRenderTarget
Quote:
MultiSample
[in] Member of the D3DMULTISAMPLE_TYPE enumerated type, which describes the multisampling buffer type. This parameter specifies the antialiasing type for this render target. When this surface is passed to IDirect3DDevice9::SetRenderTarget, its multisample type must be the same as that of the depth-stencil set by IDirect3DDevice9::SetDepthStencilSurface.
MultisampleQuality
[in] Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by IDirect3D9::CheckDeviceMultiSampleType. Passing a larger value returns the error, D3DERR_INVALIDCALL. The MultisampleQuality values of paired render targets, depth stencil surfaces, and the multisample type must all match.
I never did use "IDirect3DDevice9::SetDepthStencilSurface" so I'm not sure what to do here... The only two things ive done with the stencil are:
d3d_parameters.EnableAutoDepthStencil = true;
d3d_parameters.AutoDepthStencilFormat = D3DFMT_D16;
Also once ive got my surface and drawn what I want onto it how do I use it? For terxtures i'm useing "d3d_device->SetTexture" but there doesn't seem to be a "SetSurface" to do the same with a surface so I can drawe it useing a quad....
[Edited by - Sync Views on February 17, 2008 9:11:52 AM]