GF4J 0.9.4 Beta

gameframe.engines.msjava4x
Class CModeEnumerator

gameframe.engines.msjava4x.CModeEnumerator

class CModeEnumerator

Enumerator for enumerating the modes that a DirectX instance can support.

Since:
GameFrame for Java 0.9
Version:
GameFrame for Java 0.9.4

Field Summary
private  java.util.Vector m_aAvailableModes
          A vector of all available video modes that fill the criteria for BPP and refresh rate.
private  int m_modeBpp
          The required Bits Per Pixel value of the mode.
private  int m_modeRefresh
          The required refresh rate of the mode.
 
Constructor Summary
(package private) CModeEnumerator(int bpp, int refresh)
          Constructs a mode enumerator that tries to fiend modes with the specified bits per pixel and refresh rate values.
 
Method Summary
 void callbackEnumModes(gameframe.engines.msjava4x.DDSurfaceDesc ddsd, gameframe.engines.msjava4x.IUnknown arg)
          DirectX callback method for enumerating video modes.
 java.util.Vector getAvailableModes()
          Returns the suitable modes that were found by this enumerator.
 

Field Detail

m_aAvailableModes

private java.util.Vector m_aAvailableModes
A vector of all available video modes that fill the criteria for BPP and refresh rate.

m_modeBpp

private int m_modeBpp
The required Bits Per Pixel value of the mode.

m_modeRefresh

private int m_modeRefresh
The required refresh rate of the mode.
Constructor Detail

CModeEnumerator

CModeEnumerator(int bpp,
                int refresh)
Constructs a mode enumerator that tries to fiend modes with the specified bits per pixel and refresh rate values.
Parameters:
bpp - Bits per pixel value required from the mode.
refresh - The refreshrate value of the mode.
Method Detail

callbackEnumModes

public void callbackEnumModes(gameframe.engines.msjava4x.DDSurfaceDesc ddsd,
                              gameframe.engines.msjava4x.IUnknown arg)
DirectX callback method for enumerating video modes.
Parameters:
ddsd - Direct draw surface description that describes the enumerated mode.
arg - Application determined argument given to the enumeration method.

getAvailableModes

public java.util.Vector getAvailableModes()
Returns the suitable modes that were found by this enumerator.
Returns:
Suitable modes that were found.

GF4J 0.9.4 Beta