RSS

(root)/iphone/common : 62 : source/ESShader.m

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

« back to all changes in this revision

Viewing changes to source/ESShader.m

Dömötör Gulyás
2010-04-09 13:30:00
Revision ID: dognotdog@gmail.com-20100409113000-e4u8j6nv2ohkx43k
adds blank.png; renames ESShader allocation method; minor tweak of Zeroconf internals

Show diffs side-by-side

added added

removed removed

37
37
 
38
38
@implementation ESShader
39
39
 
40
 
+ (id) shader
 
40
+ (id) allocShader
41
41
{
42
42
        switch([[EAGLContext currentContext] API])
43
43
        {
44
44
                case kEAGLRenderingAPIOpenGLES1:
45
 
                        return [[ES1Shader alloc] autorelease];
 
45
                        return [ES1Shader alloc];
46
46
                case kEAGLRenderingAPIOpenGLES2:
47
 
                        return [[ES2Shader alloc] autorelease];
 
47
                        return [ES2Shader alloc];
48
48
                default:
49
49
                        [[NSException exceptionWithName: @"com.elmonkey.invalidShader" reason: @"Invalid OpenGL ES API selected." userInfo: nil] raise];
50
50
                        return nil;

Loggerhead 1.17 is a web-based interface for Bazaar branches