Skip to content

Instantly share code, notes, and snippets.

@abock
Created May 31, 2014 14:44
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 abock/9d44c87eb4f2b0504cab to your computer and use it in GitHub Desktop.
Save abock/9d44c87eb4f2b0504cab to your computer and use it in GitHub Desktop.
// 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