Platform SDK: DirectX

ID3DXContext::GetBackBuffer

The ID3DXContext::GetBackBuffer method retrieves a back buffer encapsulated by a context object.

LPDIRECTDRAWSURFACE7 GetBackBuffer( 
  DWORD dwWhich 
); 

Parameters

dwWhich
Index of the back buffer object to return.

Return Values

If the method succeeds, the method returns a pointer to an IDirectDrawSurface7 interface.

If the method fails, NULL is returned.

Remarks

Note that reference counts are maintained for the buffers encapsulated by a context object. So, it is the application's responsibility to release buffers before the application exits or when it is resized.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxcore.h.
  Library: Use d3dx.lib.

See Also

ID3DXContext::GetBufferSize, ID3DXContext::GetNumBackBuffers, ID3DXContext::Resize