Class AndroidGraphicsMode
Inheritance
Namespace: OpenTK.Platform.Android
Assembly: cs.temp.dll.dll
Syntax
[Obsolete("Kept for Xamarin compatibility, use GraphicsMode instead")]
public class AndroidGraphicsMode : GraphicsMode
Constructors
AndroidGraphicsMode(ColorFormat, Int32, Int32, Int32, Int32, Boolean)
Creates an AndroidGraphicsMode instance with the defined settings. Defaults to EGL 1.x. To use EGL 2.0, call the OpenTK.Platform.Android.AndroidGraphicsMode(Javax.Microedition.Khronos.Egl.EGLDisplay,int,OpenTK.Graphics.GraphicsMode) or OpenTK.Platform.Android.AndroidGraphicsMode(Javax.Microedition.Khronos.Egl.EGLDisplay,int,OpenTK.Graphics.ColorFormat,int,int,int,int,bool) constructors (pass null to the display parameter for lazy initialization)
Declaration
public AndroidGraphicsMode(ColorFormat color, int depth, int stencil, int samples, int buffers, bool stereo)
Parameters
Type | Name | Description |
---|---|---|
ColorFormat | color | |
System.Int32 | depth | |
System.Int32 | stencil | |
System.Int32 | samples | |
System.Int32 | buffers | |
System.Boolean | stereo |
AndroidGraphicsMode(Object, Int32, ColorFormat, Int32, Int32, Int32, Int32, Boolean)
Creates an AndroidGraphicsMode instance with the required settings. Passing null to the display parameter for lazy initialization is recommended.
Declaration
public AndroidGraphicsMode(object display_ignored, int majorVersion, ColorFormat color, int depth, int stencil, int samples, int buffers, bool stereo)
Parameters
Type | Name | Description |
---|---|---|
System.Object | display_ignored | |
System.Int32 | majorVersion | Requested OpenGL version (1 or 2) |
ColorFormat | color | The ColorFormat of the color buffer. |
System.Int32 | depth | The number of bits in the depth buffer. |
System.Int32 | stencil | The number of bits in the stencil buffer. |
System.Int32 | samples | The number of samples for FSAA. |
System.Int32 | buffers | The number of render buffers. Typical values include one (single-), two (double-) or three (triple-buffering). |
System.Boolean | stereo | Set to true for a GraphicsMode with stereographic capabilities. |
AndroidGraphicsMode(Object, Int32, GraphicsMode)
Creates an AndroidGraphicsMode instance, copying the values set in the mode parameter. Passing null to the display parameter for lazy initialization is recommended.
Declaration
public AndroidGraphicsMode(object display_ignored, int majorVersion, GraphicsMode mode)
Parameters
Type | Name | Description |
---|---|---|
System.Object | display_ignored | |
System.Int32 | majorVersion | Requested OpenGL version (1 or 2) |
GraphicsMode | mode | GraphicsMode to copy values from. |