зеркало из https://github.com/xamarin/ios-samples.git
OpenGLESSample-GameView ported to 64-bits
This commit is contained in:
Родитель
f375e0a358
Коммит
efc6897e9f
|
@ -1,10 +1,10 @@
|
|||
using System;
|
||||
using OpenTK.Platform.iPhoneOS;
|
||||
using MonoTouch.Foundation;
|
||||
using MonoTouch.ObjCRuntime;
|
||||
using MonoTouch.CoreAnimation;
|
||||
using Foundation;
|
||||
using ObjCRuntime;
|
||||
using CoreAnimation;
|
||||
using OpenTK;
|
||||
using MonoTouch.OpenGLES;
|
||||
using OpenGLES;
|
||||
using OpenTK.Graphics.ES11;
|
||||
|
||||
namespace OpenGLESSampleGameView
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MonoTouch.Foundation;
|
||||
using MonoTouch.UIKit;
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
|
||||
namespace OpenGLESSampleGameView
|
||||
{
|
||||
|
|
|
@ -11,19 +11,19 @@
|
|||
namespace OpenGLESSampleGameView {
|
||||
|
||||
|
||||
// Base type probably should be MonoTouch.Foundation.NSObject or subclass
|
||||
[MonoTouch.Foundation.Register("OpenGLESSampleAppDelegate")]
|
||||
// Base type probably should be Foundation.NSObject or subclass
|
||||
[Foundation.Register("OpenGLESSampleAppDelegate")]
|
||||
public partial class OpenGLESSampleAppDelegate {
|
||||
|
||||
private MonoTouch.UIKit.UIWindow __mt_window;
|
||||
private UIKit.UIWindow __mt_window;
|
||||
|
||||
private EAGLView __mt_glView;
|
||||
|
||||
#pragma warning disable 0169
|
||||
[MonoTouch.Foundation.Connect("window")]
|
||||
private MonoTouch.UIKit.UIWindow window {
|
||||
[Foundation.Connect("window")]
|
||||
private UIKit.UIWindow window {
|
||||
get {
|
||||
this.__mt_window = ((MonoTouch.UIKit.UIWindow)(this.GetNativeField("window")));
|
||||
this.__mt_window = ((UIKit.UIWindow)(this.GetNativeField("window")));
|
||||
return this.__mt_window;
|
||||
}
|
||||
set {
|
||||
|
@ -32,7 +32,7 @@ namespace OpenGLESSampleGameView {
|
|||
}
|
||||
}
|
||||
|
||||
[MonoTouch.Foundation.Connect("glView")]
|
||||
[Foundation.Connect("glView")]
|
||||
private EAGLView glView {
|
||||
get {
|
||||
this.__mt_glView = ((EAGLView)(this.GetNativeField("glView")));
|
||||
|
@ -45,8 +45,8 @@ namespace OpenGLESSampleGameView {
|
|||
}
|
||||
}
|
||||
|
||||
// Base type probably should be MonoTouch.UIKit.UIView or subclass
|
||||
[MonoTouch.Foundation.Register("EAGLView")]
|
||||
// Base type probably should be UIKit.UIView or subclass
|
||||
[Foundation.Register("EAGLView")]
|
||||
public partial class EAGLView {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
<MtouchDebug>True</MtouchDebug>
|
||||
<ConsolePause>False</ConsolePause>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchExtraArgs>--registrar:static --nofastsim --override-abi x86_64</MtouchExtraArgs>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
@ -61,8 +62,12 @@
|
|||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="monotouch" />
|
||||
<Reference Include="OpenTK" />
|
||||
<Reference Include="Xamarin.iOS">
|
||||
<HintPath>\Developer\MonoTouch\usr\lib\mono\Xamarin.iOS\Xamarin.iOS.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenTK" >
|
||||
<HintPath>\Developer\MonoTouch\usr\lib\mono\Xamarin.iOS\OpenTK-1.0.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Info.plist" />
|
||||
|
@ -102,4 +107,4 @@
|
|||
<ItemGroup>
|
||||
<ITunesArtwork Include="Resources\iTunesArtwork.png" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче