diff --git a/cocos/platform/win8.1-universal/pch.h b/cocos/platform/win8.1-universal/pch.h index 588b975ccd..2e511d964f 100644 --- a/cocos/platform/win8.1-universal/pch.h +++ b/cocos/platform/win8.1-universal/pch.h @@ -11,6 +11,4 @@ #include "cocos2d.h" #include "cocos-ext.h" -//#include "App.xaml.h" - diff --git a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/Cocos2dRenderer.cpp b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/Cocos2dRenderer.cpp index 94a847a3cd..e0c02e3ee8 100644 --- a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/Cocos2dRenderer.cpp +++ b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/Cocos2dRenderer.cpp @@ -16,7 +16,6 @@ * See the License for the specific language governing permissions and limitations under the License. */ -#include "pch.h" #include "Cocos2dRenderer.h" #include "AppDelegate.h" #include "CCGLViewImpl-winrt.h" diff --git a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/Cocos2dRenderer.h b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/Cocos2dRenderer.h index 45c904255c..387445f6d5 100644 --- a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/Cocos2dRenderer.h +++ b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/Cocos2dRenderer.h @@ -17,9 +17,11 @@ */ #pragma once -#include "pch.h" #include +#include "cocos2d.h" + + class AppDelegate; namespace cocos2d diff --git a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLES.cpp b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLES.cpp index 19203e770e..943b0856fc 100644 --- a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLES.cpp +++ b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLES.cpp @@ -16,8 +16,7 @@ * See the License for the specific language governing permissions and limitations under the License. */ -#include "pch.h" - +#include "OpenGLES.h" using namespace Platform; using namespace Windows::UI::Xaml::Controls; using namespace Windows::Foundation; diff --git a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml index 9936fe1676..e5b62802a5 100644 --- a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml +++ b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml @@ -7,6 +7,22 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> - - + + + + + + + + diff --git a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml.cpp b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml.cpp index 7dcd66c003..c8ee9afb42 100644 --- a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml.cpp +++ b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml.cpp @@ -16,7 +16,7 @@ * See the License for the specific language governing permissions and limitations under the License. */ -#include "pch.h" +#include "App.xaml.h" #include "OpenGLESPage.xaml.h" using namespace cocos2d; diff --git a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml.h b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml.h index fb0a624bff..d8ddccc63e 100644 --- a/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml.h +++ b/templates/cpp-template-default/proj.win8.1-universal/HelloCpp.Shared/OpenGLESPage.xaml.h @@ -18,6 +18,7 @@ #pragma once +#include "OpenGLES.h" #include "OpenGLESPage.g.h" #include diff --git a/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/App.xaml.cpp b/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/App.xaml.cpp index 8e7b15fa5c..f4365b88c5 100644 --- a/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/App.xaml.cpp +++ b/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/App.xaml.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "App.xaml.h" #include "OpenGLESPage.xaml.h" using namespace cocos2d; @@ -12,7 +12,7 @@ void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEvent { if (mPage == nullptr) { - mPage = ref new cocos2d::OpenGLESPage(&mOpenGLES); + mPage = ref new OpenGLESPage(&mOpenGLES); } // Place the page in the current window and ensure that it is active. diff --git a/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/HelloCpp.Shared.vcxitems b/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/HelloCpp.Shared.vcxitems index 331974ee5c..f5282cc2e7 100644 --- a/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/HelloCpp.Shared.vcxitems +++ b/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/HelloCpp.Shared.vcxitems @@ -1,4 +1,4 @@ - + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) @@ -21,6 +21,9 @@ $(MSBuildThisFileDirectory)..\..\..\..\cocos\platform\win8.1-universal\OpenGLESPage.xaml + + Create + @@ -31,16 +34,13 @@ $(MSBuildThisFileDirectory)..\..\..\..\cocos\platform\win8.1-universal\OpenGLESPage.xaml + $(MSBuildThisFileDirectory)App.xaml - - Create - - diff --git a/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/HelloCpp.Shared.vcxitems.filters b/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/HelloCpp.Shared.vcxitems.filters index 03b99dcd16..b94069d87c 100644 --- a/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/HelloCpp.Shared.vcxitems.filters +++ b/tests/cpp-empty-test/proj.win8.1-universal/HelloCpp.Shared/HelloCpp.Shared.vcxitems.filters @@ -3,8 +3,6 @@ - - Classes @@ -14,6 +12,7 @@ + @@ -36,6 +35,7 @@ + diff --git a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.cpp b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.cpp index 5fe43b595a..f4365b88c5 100644 --- a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.cpp +++ b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "App.xaml.h" #include "OpenGLESPage.xaml.h" using namespace cocos2d; diff --git a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.h b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.h index 00038e0e88..1309c610d7 100644 --- a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.h +++ b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.h @@ -13,7 +13,7 @@ namespace cocos2d virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; private: - cocos2d::OpenGLESPage^ mPage; + OpenGLESPage^ mPage; OpenGLES mOpenGLES; }; } diff --git a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.WindowsPhone/cpp-tests.WindowsPhone.vcxproj b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.WindowsPhone/cpp-tests.WindowsPhone.vcxproj index e4f4ebbdd8..581f8bcb6b 100644 --- a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.WindowsPhone/cpp-tests.WindowsPhone.vcxproj +++ b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.WindowsPhone/cpp-tests.WindowsPhone.vcxproj @@ -85,6 +85,8 @@ 4056;4996;%(DisableSpecificWarnings) CC_ENABLE_CHIPMUNK_INTEGRATION=1;%(PreprocessorDefinitions) CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;%(PreprocessorDefinitions) + Use + Use @@ -103,6 +105,8 @@ 4056;4996;%(DisableSpecificWarnings) CC_ENABLE_CHIPMUNK_INTEGRATION=1;%(PreprocessorDefinitions) CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;%(PreprocessorDefinitions) + Use + Use diff --git a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.WindowsPhone/cpp-tests.WindowsPhone.vcxproj.filters b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.WindowsPhone/cpp-tests.WindowsPhone.vcxproj.filters index 83536dadd6..b978e2a74f 100644 --- a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.WindowsPhone/cpp-tests.WindowsPhone.vcxproj.filters +++ b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.WindowsPhone/cpp-tests.WindowsPhone.vcxproj.filters @@ -29,10 +29,4 @@ - - - - - - \ No newline at end of file