Commits

Anonymous committed eecb4e0

ortho matrix fixed

Comments (0)

Files changed (2)

code/payload/banana/BananaCamera.h

 			this->viewProjection._11 = 2.0f / (right - left);
 			this->viewProjection._22 = 2.0f / (top - bottom);
 			this->viewProjection._33 = 2.0f / (_near - _far);
+			this->viewProjection._44 = 1.0f;
 
-			this->viewProjection._14 = -(right + left) / (right - left);
-			this->viewProjection._24 = -(top + bottom) / (top - bottom);
-			this->viewProjection._34 = -(_far + _near) / (_far - _near);
+			this->viewProjection._41 = -(right + left) / (right - left);
+			this->viewProjection._42 = -(top + bottom) / (top - bottom);
+			this->viewProjection._43 = -(_far + _near) / (_far - _near);
 		}
 	};
 

lobster.xcodeproj/project.pbxproj

 		A8A7CCBE137ED773003846C5 /* main.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = main.mm; path = code/ios/main.mm; sourceTree = "<group>"; };
 		A8A7CCC0137ED853003846C5 /* LobsterViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = LobsterViewController.xib; path = code/ios/LobsterViewController.xib; sourceTree = "<group>"; };
 		A8A7CCC1137ED853003846C5 /* MainWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = MainWindow.xib; path = code/ios/MainWindow.xib; sourceTree = "<group>"; };
+		A8D6D71114460C3400B25C1F /* SceneObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SceneObject.h; path = code/payload/SceneObject.h; sourceTree = "<group>"; };
+		A8D6D71214460C3400B25C1F /* FontManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FontManager.h; path = code/payload/FontManager.h; sourceTree = "<group>"; };
+		A8D6D71C14460C3400B25C1F /* Sprite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Sprite.h; path = code/payload/Sprite.h; sourceTree = "<group>"; };
+		A8D6D71D14460C3400B25C1F /* Scene.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Scene.h; path = code/payload/Scene.h; sourceTree = "<group>"; };
+		A8D6D71E14460C3500B25C1F /* RenderItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RenderItem.h; path = code/payload/RenderItem.h; sourceTree = "<group>"; };
+		A8D6D71F14460C3500B25C1F /* Renderer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Renderer.h; path = code/payload/Renderer.h; sourceTree = "<group>"; };
+		A8D6D72014460C3500B25C1F /* Material.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Material.h; path = code/payload/Material.h; sourceTree = "<group>"; };
+		A8D6D72114460C3500B25C1F /* Label.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Label.h; path = code/payload/Label.h; sourceTree = "<group>"; };
 		A8FCB1FE137E89D6008A1821 /* Scrapheap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Scrapheap.h; path = code/payload/Scrapheap.h; sourceTree = "<group>"; };
 		D110F82113425A9D00F45F3C /* GameKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameKit.framework; path = System/Library/Frameworks/GameKit.framework; sourceTree = SDKROOT; };
 		D110F82513425AAE00F45F3C /* GameCenter.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = GameCenter.mm; path = code/ios/GameCenter.mm; sourceTree = "<group>"; };
 		D15E5650133F898400E2D7C0 /* payload */ = {
 			isa = PBXGroup;
 			children = (
+				A8D6D71114460C3400B25C1F /* SceneObject.h */,
+				A8D6D71214460C3400B25C1F /* FontManager.h */,
+				A8D6D71C14460C3400B25C1F /* Sprite.h */,
+				A8D6D71D14460C3400B25C1F /* Scene.h */,
+				A8D6D71E14460C3500B25C1F /* RenderItem.h */,
+				A8D6D71F14460C3500B25C1F /* Renderer.h */,
+				A8D6D72014460C3500B25C1F /* Material.h */,
+				A8D6D72114460C3500B25C1F /* Label.h */,
 				D1AF9A5E1376A22C00EB0E65 /* banana */,
 				D14D74E81374694500E204FC /* Lobster.cpp */,
 				A8FCB1FE137E89D6008A1821 /* Scrapheap.h */,