Skip to main content

CCApplication

CCApplication

Cocos2D

Inheritance: System.Object → Microsoft.Xna.Framework.GameComponent → Microsoft.Xna.Framework.DrawableGameComponent

Implements: Microsoft.Xna.Framework.IGameComponent, Microsoft.Xna.Framework.IUpdateable, System.IDisposable, Microsoft.Xna.Framework.IDrawable

Constructors

CCApplication(Game, IGraphicsDeviceService)

CCApplication(Game, IGraphicsDeviceService)(Microsoft.Xna.Framework.Game game, Microsoft.Xna.Framework.Graphics.IGraphicsDeviceService service)
Parameters:
game (Microsoft.Xna.Framework.Game)
service (Microsoft.Xna.Framework.Graphics.IGraphicsDeviceService)

Fields

GameTime(Microsoft.Xna.Framework.GameTime)
m_bCaptured(System.Boolean)
m_pDelegate(Cocos2D.ICCEGLTouchDelegate)
s_pSharedApplication(Cocos2D.CCApplication)

Properties

AnimationInterval(System.Double)
Content(Microsoft.Xna.Framework.Content.ContentManager)
HandleMediaStateAutomatically(System.Boolean)
SharedApplication(Cocos2D.CCApplication)
TouchDelegate(Cocos2D.ICCEGLTouchDelegate)
UseInputStateManagement(System.Boolean)

Methods

ApplicationDidEnterBackground()

ApplicationDidEnterBackground()()

ApplicationDidFinishLaunching()

System.Boolean ApplicationDidFinishLaunching()()
Returns:
System.Boolean

ApplicationWillEnterForeground()

ApplicationWillEnterForeground()()

ClearTouches()

ClearTouches()()

Draw(GameTime)

Draw(GameTime)(Microsoft.Xna.Framework.GameTime gameTime)

Draw this component.

Parameters:
gameTime (Microsoft.Xna.Framework.GameTime) - The time elapsed since the last call to .
Example

InitInstance()

System.Boolean InitInstance()()
Returns:
System.Boolean

Initialize()

Initialize()()

Called when the needs to be initialized.

Example

LoadContent()

LoadContent()()

Load graphical resources needed by this component.

Example

Update(GameTime)

Update(GameTime)(Microsoft.Xna.Framework.GameTime gameTime)

Update the component.

Parameters:
gameTime (Microsoft.Xna.Framework.GameTime) - of the .
Example

Events

GamePadButtonUpdate(Event)
GamePadConnectionUpdate(Event)
GamePadDPadUpdate(Event)
GamePadStickUpdate(Event)
GamePadTriggerUpdate(Event)
OnGesture(Event)