CCGameView
CCGameView
Cocos2DInheritance: System.Object
Implements: System.IDisposable
Constructors
CCGameView(Game, GraphicsDeviceManager)
CCGameView(Game, GraphicsDeviceManager)(Microsoft.Xna.Framework.Game game, Microsoft.Xna.Framework.GraphicsDeviceManager graphics)Parameters:
game (Microsoft.Xna.Framework.Game)graphics (Microsoft.Xna.Framework.GraphicsDeviceManager)Fields
_platformInitialised(System.Boolean)
Properties
ActionManager(Cocos2D.CCActionManager)
ContentManager(Cocos2D.CCContentManager)
ContentRootDirectory(System.String)
DesignResolution(Cocos2D.CCSize)
Director(Cocos2D.CCDirector)
Game(Microsoft.Xna.Framework.Game)
GraphicsDevice(Microsoft.Xna.Framework.Graphics.GraphicsDevice)
IsSecondaryView(System.Boolean)
MouseEnabled(System.Boolean)
Paused(System.Boolean)
ResolutionPolicy(Cocos2D.CCViewResolutionPolicy)
RunningScene(Cocos2D.CCScene)
Scheduler(Cocos2D.CCScheduler)
SplitScreenEnabled(System.Boolean)
SplitScreenScene(Cocos2D.CCScene)
ViewSize(Cocos2D.CCSize)
ViewportRectRatio(Cocos2D.CCRect)
Methods
AttachSecondaryView(CCGameView)
AttachSecondaryView(CCGameView)(Cocos2D.CCGameView secondaryView)Parameters:
secondaryView (Cocos2D.CCGameView)DetachSecondaryView(CCGameView)
DetachSecondaryView(CCGameView)(Cocos2D.CCGameView secondaryView)Parameters:
secondaryView (Cocos2D.CCGameView)Dispose()
Dispose()()Example
Dispose(bool)
Dispose(bool)(System.Boolean disposing)Parameters:
disposing (System.Boolean)DrawSecondaryViews(GameTime)
DrawSecondaryViews(GameTime)(Microsoft.Xna.Framework.GameTime gameTime)Parameters:
gameTime (Microsoft.Xna.Framework.GameTime)DrawView(GameTime)
DrawView(GameTime)(Microsoft.Xna.Framework.GameTime gameTime)Parameters:
gameTime (Microsoft.Xna.Framework.GameTime)~CCGameView()
~CCGameView()()ReplaceScene(CCScene)
ReplaceScene(CCScene)(Cocos2D.CCScene scene)Parameters:
scene (Cocos2D.CCScene)ReplaceSplitScreenScene(CCScene)
ReplaceSplitScreenScene(CCScene)(Cocos2D.CCScene scene)Parameters:
scene (Cocos2D.CCScene)RunWithScene(CCScene, bool)
RunWithScene(CCScene, bool)(Cocos2D.CCScene scene, System.Boolean useViewScene)Parameters:
scene (Cocos2D.CCScene)useViewScene (System.Boolean)SetSplitScreenScene(CCScene)
SetSplitScreenScene(CCScene)(Cocos2D.CCScene scene)Parameters:
scene (Cocos2D.CCScene)StartGame()
StartGame()()UpdateSecondaryViews(GameTime)
UpdateSecondaryViews(GameTime)(Microsoft.Xna.Framework.GameTime gameTime)Parameters:
gameTime (Microsoft.Xna.Framework.GameTime)UpdateView(GameTime)
UpdateView(GameTime)(Microsoft.Xna.Framework.GameTime gameTime)Parameters:
gameTime (Microsoft.Xna.Framework.GameTime)UpdateViewSize(int, int)
UpdateViewSize(int, int)(System.Int32 width, System.Int32 height)Parameters:
width (System.Int32)height (System.Int32)Events
ViewCreated(Event)