Created
July 19, 2013 15:20
-
-
Save ricardoquesada/6039907 to your computer and use it in GitHub Desktop.
calls to different libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Matrix4 | |
{ | |
mult(const Matrix4& other) { | |
#if defined(CC_PLATFORM_IOS) || defined(CC_PLATFORM_MAC) | |
GLKMatrix4Multiply(...); | |
#elif defined(CC_PLATFORM_ANDROID) && defined(__ARMV7__) | |
// Use ne10 library | |
ne10XXXXX(); | |
#elif defined(__ARMV7__) | |
// ARMv7 defined, but not Android. | |
neon_matrix4_multiply(....); | |
#else | |
c_matrix4_multiply(...); | |
#endif | |
} | |
private: | |
float values[16]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment