C# Class Microsoft.Xna.Framework.AndroidGameWindow

Inheritance: AndroidGameView, Android.Views.View.IOnTouchListener
Afficher le fichier Open project: procfxgen/MGShaderEditor Class Usage Examples

Private Properties

Свойство Type Description
ChangeClientBounds void
GetEffectiveSupportedOrientations DisplayOrientation
Initialize void
OnRenderFrame void
OnUpdateFrame void
SetDisplayOrientation void
SetOrientation void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
SetSupportedOrientations ( DisplayOrientation orientations ) : void
SetTitle ( string title ) : void

Private Methods

Méthode 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 méthode

public AndroidGameWindow ( Microsoft.Xna.Framework.AndroidGameActivity activity, Microsoft.Xna.Framework.Game game ) : System
activity Microsoft.Xna.Framework.AndroidGameActivity
game Microsoft.Xna.Framework.Game
Résultat System

BeginScreenDeviceChange() public méthode

public BeginScreenDeviceChange ( bool willBeFullScreen ) : void
willBeFullScreen bool
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EndScreenDeviceChange() public méthode

public EndScreenDeviceChange ( string screenDeviceName, int clientWidth, int clientHeight ) : void
screenDeviceName string
clientWidth int
clientHeight int
Résultat void

SetResumer() public méthode

public SetResumer ( IResumeManager resumer ) : void
resumer IResumeManager
Résultat void

SetSupportedOrientations() protected méthode

protected SetSupportedOrientations ( DisplayOrientation orientations ) : void
orientations DisplayOrientation
Résultat void

SetTitle() protected méthode

protected SetTitle ( string title ) : void
title string
Résultat void