Show / Hide Table of Contents

Class AndroidGameView

Inheritance
SurfaceView
GameViewBase
AndroidGameView
Implements
IGameWindow
ISurfaceHolderCallback
Inherited Members
GameViewBase.GraphicsContext
GameViewBase.AutoResize
GameViewBase.CreateFrameBuffer()
GameViewBase.INativeWindow.PointToClient(Point)
GameViewBase.INativeWindow.PointToScreen(Point)
GameViewBase.Load
GameViewBase.OnLoad(EventArgs)
GameViewBase.Unload
GameViewBase.OnUnload(EventArgs)
GameViewBase.UpdateFrame
GameViewBase.OnUpdateFrame(FrameEventArgs)
GameViewBase.RenderFrame
GameViewBase.OnRenderFrame(FrameEventArgs)
GameViewBase.Move
GameViewBase.Resize
GameViewBase.OnResize(EventArgs)
GameViewBase.Closing
GameViewBase.Closed
GameViewBase.OnClosed(EventArgs)
GameViewBase.Disposed
GameViewBase.OnDisposed(EventArgs)
GameViewBase.ContextLost
GameViewBase.ContextSet
GameViewBase.OnContextSet(EventArgs)
GameViewBase.RenderThreadExited
GameViewBase.OnRenderThreadExited(EventArgs)
GameViewBase.TitleChanged
GameViewBase.OnTitleChanged(EventArgs)
GameViewBase.VisibleChanged
GameViewBase.OnVisibleChanged(EventArgs)
GameViewBase.FocusedChanged
GameViewBase.WindowBorderChanged
GameViewBase.WindowStateChanged
GameViewBase.OnWindowStateChanged(EventArgs)
GameViewBase.INativeWindow.KeyPress
GameViewBase.Width
GameViewBase.Height
GameViewBase.MouseEnter
GameViewBase.MouseLeave
GameViewBase.ProcessEvents()
GameViewBase.PointToClient(Point)
GameViewBase.PointToScreen(Point)
GameViewBase.Title
GameViewBase.Focused
GameViewBase.Exists
GameViewBase.Bounds
GameViewBase.Location
GameViewBase.X
GameViewBase.Y
GameViewBase.ClientRectangle
GameViewBase.ClientSize
GameViewBase.INativeWindow.Cursor
GameViewBase.INativeWindow.CursorVisible
GameViewBase.INativeWindow.Icon
GameViewBase.INativeWindow.IconChanged
Namespace: OpenTK.Platform.Android
Assembly: cs.temp.dll.dll
Syntax
public class AndroidGameView : GameViewBase, IGameWindow, ISurfaceHolderCallback

Constructors

AndroidGameView(Context)

Declaration
public AndroidGameView(Context context)
Parameters
Type Name Description
Context context

AndroidGameView(Context, IAttributeSet)

Declaration
public AndroidGameView(Context context, IAttributeSet attrs)
Parameters
Type Name Description
Context context
IAttributeSet attrs

AndroidGameView(IntPtr, Android.Runtime.JniHandleOwnership)

Declaration
public AndroidGameView(IntPtr handle, Android.Runtime.JniHandleOwnership transfer)
Parameters
Type Name Description
System.IntPtr handle
Android.Runtime.JniHandleOwnership transfer

Fields

RenderThreadException

Declaration
public Exception RenderThreadException
Field Value
Type Description
System.Exception

Properties

AutoSetContextOnRenderFrame

Declaration
public bool AutoSetContextOnRenderFrame { get; set; }
Property Value
Type Description
System.Boolean

ContextRenderingApi

Declaration
public GLVersion ContextRenderingApi { get; set; }
Property Value
Type Description
GLVersion

GraphicsMode

Declaration
public GraphicsMode GraphicsMode { get; set; }
Property Value
Type Description
GraphicsMode

RenderOnUIThread

Declaration
public bool RenderOnUIThread { get; set; }
Property Value
Type Description
System.Boolean

RenderThreadRestartRetries

Declaration
public int RenderThreadRestartRetries { get; set; }
Property Value
Type Description
System.Int32

Size

The size of the current view.

Declaration
public override Size Size { get; set; }
Property Value
Type Description
Size

A System.Drawing.Size which is the size of the current view.

Overrides
GameViewBase.Size
Exceptions
Type Condition
System.ObjectDisposed

The instance has been disposed

SurfaceFormat

Declaration
public Format SurfaceFormat { get; set; }
Property Value
Type Description
Format

Visible

The visibility of the window. Always returns true.

Declaration
public virtual bool Visible { get; set; }
Property Value
Type Description
System.Boolean
Exceptions
Type Condition
System.ObjectDisposed

The instance has been disposed

WindowBorder

Always returns Hidden.

Declaration
public override WindowBorder WindowBorder { get; set; }
Property Value
Type Description
WindowBorder
Overrides
GameViewBase.WindowBorder
Exceptions
Type Condition
System.ObjectDisposed

The instance has been disposed

WindowInfo

Gets information about the containing window.

Declaration
public override IWindowInfo WindowInfo { get; }
Property Value
Type Description
IWindowInfo

By default, returns an instance of AndroidWindow

Overrides
GameViewBase.WindowInfo
Exceptions
Type Condition
System.ObjectDisposed

The instance has been disposed

WindowState

Always returns Normal.

Declaration
public override WindowState WindowState { get; set; }
Property Value
Type Description
WindowState
Overrides
GameViewBase.WindowState
Exceptions
Type Condition
System.ObjectDisposed

The instance has been disposed

Methods

Close()

Declaration
public override void Close()
Overrides
GameViewBase.Close()

DestroyFrameBuffer()

Declaration
protected virtual void DestroyFrameBuffer()

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

MakeCurrent()

Declaration
public override void MakeCurrent()
Overrides
GameViewBase.MakeCurrent()

OnContextLost(EventArgs)

Declaration
protected override void OnContextLost(EventArgs e)
Parameters
Type Name Description
System.EventArgs e
Overrides
GameViewBase.OnContextLost(EventArgs)

Pause()

Declaration
public virtual void Pause()

Resume()

Declaration
public virtual void Resume()

Run()

Declaration
public override void Run()
Overrides
GameViewBase.Run()

Run(Double)

Declaration
public override void Run(double updatesPerSecond)
Parameters
Type Name Description
System.Double updatesPerSecond
Overrides
GameViewBase.Run(Double)

Stop()

Declaration
public void Stop()

SurfaceChanged(ISurfaceHolder, Format, Int32, Int32)

Declaration
public void SurfaceChanged(ISurfaceHolder holder, Format format, int w, int h)
Parameters
Type Name Description
ISurfaceHolder holder
Format format
System.Int32 w
System.Int32 h

SurfaceCreated(ISurfaceHolder)

Declaration
public void SurfaceCreated(ISurfaceHolder holder)
Parameters
Type Name Description
ISurfaceHolder holder

SurfaceDestroyed(ISurfaceHolder)

Declaration
public void SurfaceDestroyed(ISurfaceHolder holder)
Parameters
Type Name Description
ISurfaceHolder holder

SwapBuffers()

Declaration
public override void SwapBuffers()
Overrides
GameViewBase.SwapBuffers()

Implements

IGameWindow
ISurfaceHolderCallback
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX