DirectX SDK

ID3DXContext::GetBufferSize

The ID3DXContext::GetBufferSize method returns the current buffer size encapsulated by a context object.

HRESULT GetBufferSize( 
  LPDWORD width,
  LPDWORD height
); 

Parameters

width
After this method returns, the parameter points to a DWORD value containing the width of the buffer in pixels.
height
After this method returns, the parameter, points to a DWORD value containing the height of the buffer in pixels.

Return Values

This method returns S_OK.

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.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxcore.h.
  Library: Use d3dx.lib.

See Also

ID3DXContext::GetPrimary, ID3DXContext::Resize