Microsoft.Xna.Framework.Graphics
Enum PresentInterval

java.lang.Object
  extended by java.lang.Enum<PresentInterval>
      extended by Microsoft.Xna.Framework.Graphics.PresentInterval
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PresentInterval>

public enum PresentInterval
extends java.lang.Enum<PresentInterval>

Defines flags that describe the relationship between the adapter refresh rate and the rate at which Present operations are completed.

Author:
Halofreak1990

Enum Constant Summary
Default
          Equivalent to setting One.
Immediate
          The runtime updates the window client area immediately, and might do so more than once during the adapter refresh period.
One
          The driver waits for the vertical retrace period (the runtime will beam trace to prevent tearing).
Two
          The driver waits for the vertical retrace period.
 
Method Summary
static PresentInterval valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PresentInterval[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Default

public static final PresentInterval Default
Equivalent to setting One.


One

public static final PresentInterval One
The driver waits for the vertical retrace period (the runtime will beam trace to prevent tearing). Present operations are not affected more frequently than the screen refresh rate; the runtime completes one Present operation per adapter refresh period, at most. This option is always available for both windowed and full-screen swap chains.


Two

public static final PresentInterval Two
The driver waits for the vertical retrace period. Present operations are not affected more frequently than every second screen refresh.


Immediate

public static final PresentInterval Immediate
The runtime updates the window client area immediately, and might do so more than once during the adapter refresh period. Present operations might be affected immediately. This option is always available for both windowed and full-screen swap chains.

Method Detail

values

public static PresentInterval[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PresentInterval c : PresentInterval.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PresentInterval valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null