RSS

(root)/iphone/common : 70 : source/NSObject_DeviceDetection.m

To get this branch, use:
bzr branch /browse/iphone/common

« back to all changes in this revision

Viewing changes to source/NSObject_DeviceDetection.m

Dömötör Gulyás
2010-08-08 17:59:45
Revision ID: dognotdog@gmail.com-20100808155945-d5p1gehk7jjd3dzo
adds method to free VertexArray resources for shared objects; changes +sharedQuad to have the tex coords rightside up; adds support for VAO on hardware supporting it; changes GLESView animation to be driven by CADisplayLink; ES2Shader can now set arbitrarily named uniforms in shaders, also gets better error checking

Show diffs side-by-side

added added

removed removed

13
13
 
14
14
- (BOOL) isItAPad
15
15
{
16
 
        #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 30200
 
16
        #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
17
17
                return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad;
18
18
        #else
19
19
                return NO;
22
22
 
23
23
- (BOOL) isItAPhone
24
24
{
25
 
        #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 30200
 
25
        #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
26
26
                return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone;
27
27
        #else
28
28
                return YES;

Loggerhead 1.17 is a web-based interface for Bazaar branches