Skip to content

Commit 3ad9cb0

Browse files
committed
Merge branch 'metal-hacking' of github.com:cocos2d/cocos2d-iphone into metal-hacking
2 parents c1353a6 + 0125b7f commit 3ad9cb0

24 files changed

+334
-196
lines changed

CCRendererGLSupport.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,8 @@ -(void)bindWithClear:(GLbitfield)mask color:(GLKVector4)color4 depth:(GLclampf)d
386386

387387
-(void)syncWithView:(CC_VIEW<CCDirectorView> *)view;
388388
{
389-
CCGLView *glView = (CCGLView *)view;
390-
self.sizeInPixels = CC_SIZE_SCALE(view.bounds.size, view.contentScaleFactor);
391-
self.contentScale = view.contentScaleFactor;
392-
393-
_fbo = glView.fbo;
389+
[super syncWithView:view];
390+
_fbo = [(CCGLView *)view fbo];
394391
}
395392

396393
@end

cocos2d-ios.xcodeproj/project.pbxproj

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@
281281
D28A2E1B1954F68D00ADC03D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D28A2E1A1954F68D00ADC03D /* QuartzCore.framework */; };
282282
D28A2E1D1954F7E000ADC03D /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D28A2E1C1954F7E000ADC03D /* OpenGLES.framework */; };
283283
D28A2E211954F85700ADC03D /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D28A2E201954F85700ADC03D /* AVFoundation.framework */; };
284+
D28B2E7A19CBA89A00DC6E08 /* CCEffectColorChannelOffset.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DBCA31319B68BE400EFE96D /* CCEffectColorChannelOffset.m */; };
284285
D291DCC2195B2FA100278EC0 /* libObjectiveChipmunk-iPhone.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B759E52D1880C66900E8166C /* libObjectiveChipmunk-iPhone.a */; };
285286
D299CE7A19C2910B00519CBB /* CCEffectDFInnerGlow.h in Headers */ = {isa = PBXBuildFile; fileRef = D299CE7819C2910B00519CBB /* CCEffectDFInnerGlow.h */; };
286287
D299CE7B19C2910B00519CBB /* CCEffectDFInnerGlow.h in Headers */ = {isa = PBXBuildFile; fileRef = D299CE7819C2910B00519CBB /* CCEffectDFInnerGlow.h */; };
@@ -599,20 +600,20 @@
599600
remoteGlobalIDString = D309B21217EFE2EF00AA52C8;
600601
remoteInfo = "ObjectiveChipmunk-iPhone";
601602
};
603+
D28B2E7D19CBA89A00DC6E08 /* PBXContainerItemProxy */ = {
604+
isa = PBXContainerItemProxy;
605+
containerPortal = FC39961319C3B92F00C93E5E /* ObjectAL.xcodeproj */;
606+
proxyType = 2;
607+
remoteGlobalIDString = D369B53219C8E73C00BA46EA;
608+
remoteInfo = "ObjectAL (Mac)";
609+
};
602610
D2FEB60F194F6C9E00FC0574 /* PBXContainerItemProxy */ = {
603611
isa = PBXContainerItemProxy;
604612
containerPortal = B759E5281880C66900E8166C /* Chipmunk7-ios.xcodeproj */;
605613
proxyType = 1;
606614
remoteGlobalIDString = D309B21217EFE2EF00AA52C8;
607615
remoteInfo = "ObjectiveChipmunk-iPhone";
608616
};
609-
D369416219CFDF170092A0BD /* PBXContainerItemProxy */ = {
610-
isa = PBXContainerItemProxy;
611-
containerPortal = FC39961319C3B92F00C93E5E /* ObjectAL.xcodeproj */;
612-
proxyType = 2;
613-
remoteGlobalIDString = D369B53219C8E73C00BA46EA;
614-
remoteInfo = "ObjectAL (Mac)";
615-
};
616617
FC39961A19C3B92F00C93E5E /* PBXContainerItemProxy */ = {
617618
isa = PBXContainerItemProxy;
618619
containerPortal = FC39961319C3B92F00C93E5E /* ObjectAL.xcodeproj */;
@@ -767,7 +768,7 @@
767768
5BC3CB5219626E4F00C4F0D0 /* CCGestureListener.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; path = CCGestureListener.java; sourceTree = "<group>"; };
768769
5BC3CB5719626FA000C4F0D0 /* CCGestureListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CCGestureListener.h; path = Android/CCGestureListener.h; sourceTree = "<group>"; };
769770
5BC3CB5819626FA000C4F0D0 /* CCGestureListener.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CCGestureListener.m; path = Android/CCGestureListener.m; sourceTree = "<group>"; };
770-
5BF3267A195F8D8800D9A51A /* cocos2dJava.jar */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = archive.jar; path = cocos2dJava.jar; sourceTree = BUILT_PRODUCTS_DIR; };
771+
5BF3267A195F8D8800D9A51A /* cocos2dJava.jar */ = {isa = PBXFileReference; explicitFileType = compiled.java.jar; includeInIndex = 0; path = cocos2dJava.jar; sourceTree = BUILT_PRODUCTS_DIR; };
771772
5BF3268C195F8E0300D9A51A /* CCActivity.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; path = CCActivity.java; sourceTree = "<group>"; };
772773
5BF3268D195F8E0300D9A51A /* CCGLView.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; path = CCGLView.java; sourceTree = "<group>"; };
773774
5BF32696195F947800D9A51A /* CCActivity.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CCActivity.h; path = Android/CCActivity.h; sourceTree = "<group>"; };
@@ -1714,7 +1715,7 @@
17141715
children = (
17151716
FC39961B19C3B92F00C93E5E /* libObjectAL.a */,
17161717
FC39961F19C3B92F00C93E5E /* libObjectAL (Android).a */,
1717-
D369416319CFDF170092A0BD /* libObjectAL (Mac).a */,
1718+
D28B2E7E19CBA89A00DC6E08 /* libObjectAL (Mac).a */,
17181719
);
17191720
name = Products;
17201721
sourceTree = "<group>";
@@ -2137,11 +2138,11 @@
21372138
remoteRef = B759E52C1880C66900E8166C /* PBXContainerItemProxy */;
21382139
sourceTree = BUILT_PRODUCTS_DIR;
21392140
};
2140-
D369416319CFDF170092A0BD /* libObjectAL (Mac).a */ = {
2141+
D28B2E7E19CBA89A00DC6E08 /* libObjectAL (Mac).a */ = {
21412142
isa = PBXReferenceProxy;
21422143
fileType = archive.ar;
21432144
path = "libObjectAL (Mac).a";
2144-
remoteRef = D369416219CFDF170092A0BD /* PBXContainerItemProxy */;
2145+
remoteRef = D28B2E7D19CBA89A00DC6E08 /* PBXContainerItemProxy */;
21452146
sourceTree = BUILT_PRODUCTS_DIR;
21462147
};
21472148
FC39961B19C3B92F00C93E5E /* libObjectAL.a */ = {
@@ -2383,6 +2384,7 @@
23832384
D2FEB6E7194F6C9E00FC0574 /* ZipUtils.m in Sources */,
23842385
D2FEB6EA194F6C9E00FC0574 /* CCEffectStack.m in Sources */,
23852386
D2FEB6EC194F6C9E00FC0574 /* CCRenderTexture.m in Sources */,
2387+
D28B2E7A19CBA89A00DC6E08 /* CCEffectColorChannelOffset.m in Sources */,
23862388
D2FEB6ED194F6C9E00FC0574 /* CCMotionStreak.m in Sources */,
23872389
D2FEB6EE194F6C9E00FC0574 /* CCSpriteFrame.m in Sources */,
23882390
D2FEB6EF194F6C9E00FC0574 /* CCSpriteFrameCache.m in Sources */,

0 commit comments

Comments
 (0)