2010-12-28 14:04:28 +08:00
|
|
|
/*
|
|
|
|
* cocos2d for iPhone: http://www.cocos2d-iphone.org
|
|
|
|
*
|
|
|
|
* Copyright (c) 2008-2010 Ricardo Quesada
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-03-07 17:11:57 +08:00
|
|
|
#include "CCPlatformConfig.h"
|
2010-12-28 14:04:28 +08:00
|
|
|
|
|
|
|
// build each architecture with the optimal particle system
|
|
|
|
|
|
|
|
// ARMv7, Mac or Simulator use "Quad" particle
|
2011-03-25 14:20:53 +08:00
|
|
|
#if defined(__ARM_NEON__) || \
|
2011-12-08 19:16:32 +08:00
|
|
|
(CC_TARGET_PLATFORM == CC_PLATFORM_MARMALADE) || \
|
2011-03-25 14:20:53 +08:00
|
|
|
(CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || \
|
|
|
|
(CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || \
|
2011-09-19 17:53:45 +08:00
|
|
|
(CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) || \
|
2011-09-29 16:03:37 +08:00
|
|
|
(CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) || \
|
2011-12-06 14:56:37 +08:00
|
|
|
(CC_TARGET_PLATFORM == CC_PLATFORM_BADA) || \
|
|
|
|
(CC_TARGET_PLATFORM == CC_PLATFORM_QNX)
|
2010-12-28 14:04:28 +08:00
|
|
|
|
|
|
|
#include "CCParticleSystemQuad.h"
|
|
|
|
#define ARCH_OPTIMAL_PARTICLE_SYSTEM CCParticleSystemQuad
|
|
|
|
|
|
|
|
// ARMv6 use "Point" particle
|
2010-12-31 14:56:24 +08:00
|
|
|
#elif __arm__
|
2010-12-28 14:04:28 +08:00
|
|
|
#include "CCParticleSystemPoint.h"
|
|
|
|
#define ARCH_OPTIMAL_PARTICLE_SYSTEM CCParticleSystemPoint
|
|
|
|
|
|
|
|
#else
|
|
|
|
#error "unknown architecture"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|