added missing value to EAGLRenderingAPI enum;
added readonly property in order to be able to get current version of OpenGL  API
#import <Foundation/Foundation.h>
#import <OpenGLES/EAGLExport.h>
-enum {
- kEAGLRenderingAPIOpenGLES1 = 1,
- kEAGLRenderingAPIOpenGLES2 = 2
-};
+enum { kEAGLRenderingAPIOpenGLES1 = 1, kEAGLRenderingAPIOpenGLES2 = 2, kEAGLRenderingAPIOpenGLES3 = 3 };
typedef uint32_t EAGLRenderingAPI;
@interface EAGLSharegroup : NSObject
@@ -32,6 +29,7 @@ typedef uint32_t EAGLRenderingAPI;
EAGL_EXPORT_CLASS
@interface EAGLContext : NSObject
@property (readonly) EAGLSharegroup* sharegroup;
+@property (readonly) NSUInteger API;
@property (getter=isMultiThreaded, nonatomic) BOOL multiThreaded;
- (id)initWithAPI:(EAGLRenderingAPI)api;
