We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
[win32] make AppDelegate.cpp created by VS wizard portable without any modification
[win32] make AppDelegate.cpp created by VS wizard portable without any modification
Feature #395 [Closed]
- Target version changed from cocos2d-0.99.5-x-0.8.3 to cocos2d-0.99.5-x-0.8.1
- Project changed from cocos2d-x to cpp
- Category deleted (
4) - Target version deleted (
cocos2d-0.99.5-x-0.8.1)
Status: | Closed | |
---|---|---|
Start date: | 2011-03-14 | |
Priority: | Normal | |
Due date: | ||
Assignee: | yangws | |
% Done: | 100% |
|
Category: | - | |
Target version: | - |
Currently, I create a new project by VS2008 wizard, the initInstance() method looks like
This file is in the “Classes” folder. If develop copy it to different platform, e.g. ios, they had to write codes to init ios in AppDelete::initInstance() method.
Don’t make me think, do it by the wizard.
You can add multi-platforms’ init code in this method. Another choice is to refactor CCXEGLView, so the code in AppDelete::initInstance can init different platforms.
In one word, make AppDeletegate.cpp portbale, without any modifications by our developer.