Created
May 31, 2014 14:44
-
-
Save abock/9d44c87eb4f2b0504cab to your computer and use it in GitHub Desktop.
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
// Mountain Lion (10.8) - this is 'int' (32 bits always) | |
typedef enum { | |
SCNGeometryPrimitiveTypeTriangles = 0, | |
SCNGeometryPrimitiveTypeTriangleStrip = 1, | |
SCNGeometryPrimitiveTypeLine = 2, | |
SCNGeometryPrimitiveTypePoint = 3 | |
} SCNGeometryPrimitiveType; | |
// Mavericks (10.9) - this is 'long' (32 or 64 bits depending on architecture) | |
typedef NS_ENUM(NSInteger, SCNGeometryPrimitiveType) { | |
SCNGeometryPrimitiveTypeTriangles = 0, | |
SCNGeometryPrimitiveTypeTriangleStrip = 1, | |
SCNGeometryPrimitiveTypeLine = 2, | |
SCNGeometryPrimitiveTypePoint = 3 | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment