C# Class Microsoft.Xna.Framework.AndroidGameWindow

Inheritance: AndroidGameView, Android.Views.View.IOnTouchListener
Show file Open project: procfxgen/MGShaderEditor Class Usage Examples

Private Properties

Property Type Description
ChangeClientBounds void
GetEffectiveSupportedOrientations DisplayOrientation
Initialize void
OnRenderFrame void
OnUpdateFrame void
SetDisplayOrientation void
SetOrientation void

Public Methods

Method Description
AndroidGameWindow ( Microsoft.Xna.Framework.AndroidGameActivity activity, Microsoft.Xna.Framework.Game game ) : System
BeginScreenDeviceChange ( bool willBeFullScreen ) : void
Dispose ( ) : void
EndScreenDeviceChange ( string screenDeviceName, int clientWidth, int clientHeight ) : void
SetResumer ( IResumeManager resumer ) : void

Protected Methods

Method Description
SetSupportedOrientations ( DisplayOrientation orientations ) : void
SetTitle ( string title ) : void

Private Methods

Method Description
ChangeClientBounds ( Rectangle bounds ) : void
GetEffectiveSupportedOrientations ( ) : DisplayOrientation

In Xna, setting SupportedOrientations = DisplayOrientation.Default (which is the default value) has the effect of setting SupportedOrientations to landscape only or portrait only, based on the aspect ratio of PreferredBackBufferWidth / PreferredBackBufferHeight

Initialize ( Android.Content.Context context ) : void
OnRenderFrame ( object sender, FrameEventArgs frameEventArgs ) : void
OnUpdateFrame ( object sender, FrameEventArgs frameEventArgs ) : void
SetDisplayOrientation ( DisplayOrientation value ) : void
SetOrientation ( DisplayOrientation newOrientation, bool applyGraphicsChanges ) : void

Updates the screen orientation. Filters out requests for unsupported orientations.

Method Details

AndroidGameWindow() public method

public AndroidGameWindow ( Microsoft.Xna.Framework.AndroidGameActivity activity, Microsoft.Xna.Framework.Game game ) : System
activity Microsoft.Xna.Framework.AndroidGameActivity
game Microsoft.Xna.Framework.Game
return System

BeginScreenDeviceChange() public method

public BeginScreenDeviceChange ( bool willBeFullScreen ) : void
willBeFullScreen bool
return void

Dispose() public method

public Dispose ( ) : void
return void

EndScreenDeviceChange() public method

public EndScreenDeviceChange ( string screenDeviceName, int clientWidth, int clientHeight ) : void
screenDeviceName string
clientWidth int
clientHeight int
return void

SetResumer() public method

public SetResumer ( IResumeManager resumer ) : void
resumer IResumeManager
return void

SetSupportedOrientations() protected method

protected SetSupportedOrientations ( DisplayOrientation orientations ) : void
orientations DisplayOrientation
return void

SetTitle() protected method

protected SetTitle ( string title ) : void
title string
return void