Skip to content

Instantly share code, notes, and snippets.

@ricardoquesada
Created July 19, 2013 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardoquesada/6039907 to your computer and use it in GitHub Desktop.
Save ricardoquesada/6039907 to your computer and use it in GitHub Desktop.
calls to different libraries
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