Microsoft SDK for Java

getAvailableTotalMem

This method of the DirectDraw Class retrieves the total available amount of display memory.

Syntax

public int getAvailableTotalMem(int[] ddsCaps);

Return Value

Returns the amount of memory.

Parameters

ddsCaps An array of the values found in the DDSCaps class.

Remarks

A display adapter card can make no distinction between two different memory types.

For example, the adapter might use the same portion of display memory to store z-buffers and textures. So, allocating one type of surface (for example, a z-buffer) can affect the amount of display memory available for another type of surface (for example, textures). Therefore, it is best to first allocate an application's fixed resources (such as front, back, and z-buffers) before determining how much memory is available for dynamic use, such as texture mapping.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.