using System;
using OpenTK.Graphics;
namespace OpenTK.Platform.Android
{
[Obsolete("Kept for Xamarin compatibility, use GraphicsMode instead")]
public class AndroidGraphicsMode : GraphicsMode
{
///
/// Creates an AndroidGraphicsMode instance with the defined settings.
/// Defaults to EGL 1.x. To use EGL 2.0, call the
///
/// or
///
/// constructors (pass null to the display parameter for lazy initialization)
///
public AndroidGraphicsMode(ColorFormat color, int depth, int stencil, int samples, int buffers, bool stereo) :
this(null, 1, color, depth, stencil, samples, buffers, stereo)
{
}
///
/// Creates an AndroidGraphicsMode instance, copying the values set in the mode parameter.
/// Passing null to the display parameter for lazy initialization is recommended.
///
///
/// A with the display to use for creating the
/// that represents this graphics configuration in
/// the OpenGL space. Pass null for lazy initialization.
///
/// Requested OpenGL version (1 or 2)
/// GraphicsMode to copy values from.
public AndroidGraphicsMode(object display_ignored, int majorVersion, GraphicsMode mode) :
this(display_ignored, majorVersion, mode.ColorFormat, mode.Depth, mode.Stencil, mode.Samples, mode.Buffers, mode.Stereo)
{
}
///
/// Creates an AndroidGraphicsMode instance with the required settings.
/// Passing null to the display parameter for lazy initialization is recommended.
///
///
/// A with the display to use for creating the
/// that represents this graphics configuration in
/// the OpenGL space. Pass null for lazy initialization.
///
/// Requested OpenGL version (1 or 2)
/// The ColorFormat of the color buffer.
/// The number of bits in the depth buffer.
/// The number of bits in the stencil buffer.
/// The number of samples for FSAA.
/// Set to true for a GraphicsMode with stereographic capabilities.
/// The number of render buffers. Typical values include one (single-), two (double-) or three (triple-buffering).
public AndroidGraphicsMode(object display_ignored, int majorVersion, ColorFormat color, int depth, int stencil, int samples, int buffers, bool stereo)
: base(color, depth, stencil, samples, 0, buffers, stereo)
{
}
}
}