зеркало из https://github.com/xamarin/ios-samples.git
Further resolved warnings and errors in monotouch-samples
This commit is contained in:
Родитель
6d63fc10a4
Коммит
113e8c2380
|
@ -38,5 +38,12 @@
|
||||||
</array>
|
</array>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>5.1.1</string>
|
<string>5.1.1</string>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
using CoreAnimation;
|
using CoreAnimation;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.ColorPattern
|
namespace Example_Drawing.Screens.iPad.ColorPattern
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.CoordinatesOffScreen
|
namespace Example_Drawing.Screens.iPad.CoordinatesOffScreen
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.CoordinatesOnScreen
|
namespace Example_Drawing.Screens.iPad.CoordinatesOnScreen
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.DrawOffScreenUsingCGBitmapContext
|
namespace Example_Drawing.Screens.iPad.DrawOffScreenUsingCGBitmapContext
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.DrawRectVsPath
|
namespace Example_Drawing.Screens.iPad.DrawRectVsPath
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.FlagOffScreen
|
namespace Example_Drawing.Screens.iPad.FlagOffScreen
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.FlagOnScreen
|
namespace Example_Drawing.Screens.iPad.FlagOnScreen
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.HitTesting
|
namespace Example_Drawing.Screens.iPad.HitTesting
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.Images
|
namespace Example_Drawing.Screens.iPad.Images
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.Layers
|
namespace Example_Drawing.Screens.iPad.Layers
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.OnScreenUncorrectedTextRotation
|
namespace Example_Drawing.Screens.iPad.OnScreenUncorrectedTextRotation
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.Shadows
|
namespace Example_Drawing.Screens.iPad.Shadows
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.StencilPattern
|
namespace Example_Drawing.Screens.iPad.StencilPattern
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace Example_Drawing.Screens.iPad.Transformations
|
namespace Example_Drawing.Screens.iPad.Transformations
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,10 +16,6 @@ namespace DynamicsCatalog {
|
||||||
{
|
{
|
||||||
base.ViewDidLoad ();
|
base.ViewDidLoad ();
|
||||||
|
|
||||||
var collisionBehavior = new UICollisionBehavior (square) {
|
|
||||||
TranslatesReferenceBoundsIntoBoundary = true
|
|
||||||
};
|
|
||||||
|
|
||||||
var squareCenterPoint = new CGPoint (square.Center.X, square.Center.Y - 100.0f);
|
var squareCenterPoint = new CGPoint (square.Center.X, square.Center.Y - 100.0f);
|
||||||
var attachmentOffset = new UIOffset (-25.0f, -25.0f);
|
var attachmentOffset = new UIOffset (-25.0f, -25.0f);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace CoreGraphicsSamples
|
namespace CoreGraphicsSamples
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
||||||
namespace CoreGraphicsSamples
|
namespace CoreGraphicsSamples
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
||||||
namespace CoreGraphicsSamples
|
namespace CoreGraphicsSamples
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using CoreAnimation;
|
using CoreAnimation;
|
||||||
|
|
||||||
namespace GraphicsDemo
|
namespace GraphicsDemo
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
<MtouchArch>i386</MtouchArch>
|
<MtouchArch>i386</MtouchArch>
|
||||||
<MtouchI18n>
|
<MtouchI18n>
|
||||||
</MtouchI18n>
|
</MtouchI18n>
|
||||||
|
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
|
|
@ -41,6 +41,11 @@
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>5.1.1</string>
|
<string>5.1.1</string>
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
<array/>
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||||
<ProductVersion>10.0.0</ProductVersion>
|
<ProductVersion>8.0.30703</ProductVersion>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<ProjectGuid>{96FCF082-6930-4167-BDEF-07ABB007205A}</ProjectGuid>
|
<ProjectGuid>{96FCF082-6930-4167-BDEF-07ABB007205A}</ProjectGuid>
|
||||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
@ -50,11 +50,16 @@
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<ConsolePause>False</ConsolePause>
|
<ConsolePause>False</ConsolePause>
|
||||||
<CodesignKey>iPhone Developer</CodesignKey>
|
<CodesignKey>iPhone Developer: Aaron Sky (PV46JWMLS9)</CodesignKey>
|
||||||
<MtouchDebug>True</MtouchDebug>
|
<MtouchDebug>True</MtouchDebug>
|
||||||
<MtouchProfiling>True</MtouchProfiling>
|
<MtouchProfiling>True</MtouchProfiling>
|
||||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||||
<MtouchArch>ARMv7</MtouchArch>
|
<MtouchArch>ARMv7</MtouchArch>
|
||||||
|
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
||||||
|
<MtouchI18n>
|
||||||
|
</MtouchI18n>
|
||||||
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||||
|
<CodesignProvision>57606011-fe4c-4347-bd07-f0c97cbbe7f4</CodesignProvision>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
@ -66,6 +71,7 @@
|
||||||
<CodesignKey>iPhone Developer</CodesignKey>
|
<CodesignKey>iPhone Developer</CodesignKey>
|
||||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||||
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
|
@ -76,6 +82,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Info.plist" />
|
<None Include="Info.plist" />
|
||||||
|
<None Include="Entitlements.plist" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AppDelegate.cs" />
|
<Compile Include="AppDelegate.cs" />
|
||||||
|
|
|
@ -21,5 +21,15 @@
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.xamarin.GLCameraRipple</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>GLCameraRipple</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>MinimumOSVersion</key>
|
||||||
|
<string>7.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace GLCameraRipple
|
||||||
{
|
{
|
||||||
CGSize screenSize;
|
CGSize screenSize;
|
||||||
int poolHeight, poolWidth;
|
int poolHeight, poolWidth;
|
||||||
int touchRadius, meshFactor;
|
int touchRadius;
|
||||||
|
|
||||||
float texCoordFactorS;
|
float texCoordFactorS;
|
||||||
float texCoordOffsetS;
|
float texCoordOffsetS;
|
||||||
|
@ -32,7 +32,6 @@ namespace GLCameraRipple
|
||||||
{
|
{
|
||||||
Console.WriteLine ("New RippleModel");
|
Console.WriteLine ("New RippleModel");
|
||||||
this.screenSize = screenSize;
|
this.screenSize = screenSize;
|
||||||
this.meshFactor = meshFactor;
|
|
||||||
this.touchRadius = touchRadius;
|
this.touchRadius = touchRadius;
|
||||||
poolWidth = (int)screenSize.Width/meshFactor;
|
poolWidth = (int)screenSize.Width/meshFactor;
|
||||||
poolHeight =(int) screenSize.Height/meshFactor;
|
poolHeight =(int) screenSize.Height/meshFactor;
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace GLCameraRipple
|
||||||
glkView.DrawInRect += Draw;
|
glkView.DrawInRect += Draw;
|
||||||
|
|
||||||
PreferredFramesPerSecond = 60;
|
PreferredFramesPerSecond = 60;
|
||||||
size = UIScreen.MainScreen.Bounds.Size.ToSize ();
|
size = UIScreen.MainScreen.Bounds.Size.ToRoundedCGSize ();
|
||||||
View.ContentScaleFactor = UIScreen.MainScreen.Scale;
|
View.ContentScaleFactor = UIScreen.MainScreen.Scale;
|
||||||
|
|
||||||
meshFactor = isPad ? 8 : 4;
|
meshFactor = isPad ? 8 : 4;
|
||||||
|
@ -62,9 +62,9 @@ namespace GLCameraRipple
|
||||||
|
|
||||||
void Draw (object sender, GLKViewDrawEventArgs args)
|
void Draw (object sender, GLKViewDrawEventArgs args)
|
||||||
{
|
{
|
||||||
GL.Clear ((int)All.ColorBufferBit);
|
GL.Clear (ClearBufferMask.ColorBufferBit);
|
||||||
if (ripple != null)
|
if (ripple != null)
|
||||||
GL.DrawElements (All.TriangleStrip, ripple.IndexCount, All.UnsignedShort, IntPtr.Zero);
|
GL.DrawElements (BeginMode.TriangleStrip, ripple.IndexCount, DrawElementsType.UnsignedShort, IntPtr.Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcessTouches (NSSet touches)
|
void ProcessTouches (NSSet touches)
|
||||||
|
@ -179,8 +179,8 @@ namespace GLCameraRipple
|
||||||
int vertShader, fragShader;
|
int vertShader, fragShader;
|
||||||
|
|
||||||
program = GL.CreateProgram ();
|
program = GL.CreateProgram ();
|
||||||
if (CompileShader (out vertShader, All.VertexShader, "Shaders/Shader.vsh")){
|
if (CompileShader (out vertShader, ShaderType.VertexShader, "Shaders/Shader.vsh")){
|
||||||
if (CompileShader (out fragShader, All.FragmentShader, "Shaders/Shader.fsh")){
|
if (CompileShader (out fragShader, ShaderType.FragmentShader, "Shaders/Shader.fsh")){
|
||||||
// Attach shaders
|
// Attach shaders
|
||||||
GL.AttachShader (program, vertShader);
|
GL.AttachShader (program, vertShader);
|
||||||
GL.AttachShader (program, fragShader);
|
GL.AttachShader (program, fragShader);
|
||||||
|
@ -212,7 +212,7 @@ namespace GLCameraRipple
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CompileShader (out int shader, All type, string path)
|
bool CompileShader (out int shader, ShaderType type, string path)
|
||||||
{
|
{
|
||||||
string shaderProgram = System.IO.File.ReadAllText (path);
|
string shaderProgram = System.IO.File.ReadAllText (path);
|
||||||
int len = shaderProgram.Length, status = 0;
|
int len = shaderProgram.Length, status = 0;
|
||||||
|
@ -220,7 +220,7 @@ namespace GLCameraRipple
|
||||||
|
|
||||||
GL.ShaderSource (shader, 1, new string [] { shaderProgram }, ref len);
|
GL.ShaderSource (shader, 1, new string [] { shaderProgram }, ref len);
|
||||||
GL.CompileShader (shader);
|
GL.CompileShader (shader);
|
||||||
GL.GetShader (shader, All.CompileStatus, ref status);
|
GL.GetShader (shader, ShaderParameter.CompileStatus, out status);
|
||||||
if (status == 0){
|
if (status == 0){
|
||||||
GL.DeleteShader (shader);
|
GL.DeleteShader (shader);
|
||||||
return false;
|
return false;
|
||||||
|
@ -304,7 +304,7 @@ namespace GLCameraRipple
|
||||||
CleanupTextures ();
|
CleanupTextures ();
|
||||||
|
|
||||||
// Y-plane
|
// Y-plane
|
||||||
GL.ActiveTexture (All.Texture0);
|
GL.ActiveTexture(TextureUnit.Texture0);
|
||||||
All re = (All) 0x1903; // GL_RED_EXT, RED component from ARB OpenGL extension
|
All re = (All) 0x1903; // GL_RED_EXT, RED component from ARB OpenGL extension
|
||||||
CVReturn status;
|
CVReturn status;
|
||||||
lumaTexture = container.videoTextureCache.TextureFromImage (pixelBuffer, true, re, textureWidth, textureHeight, re, DataType.UnsignedByte, 0, out status);
|
lumaTexture = container.videoTextureCache.TextureFromImage (pixelBuffer, true, re, textureWidth, textureHeight, re, DataType.UnsignedByte, 0, out status);
|
||||||
|
@ -313,12 +313,12 @@ namespace GLCameraRipple
|
||||||
Console.WriteLine ("Error creating luma texture: {0}", status);
|
Console.WriteLine ("Error creating luma texture: {0}", status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GL.BindTexture ((All)lumaTexture.Target, lumaTexture.Name);
|
GL.BindTexture (lumaTexture.Target, lumaTexture.Name);
|
||||||
GL.TexParameter (All.Texture2D, All.TextureWrapS, (int) All.ClampToEdge);
|
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapS, (int) All.ClampToEdge);
|
||||||
GL.TexParameter (All.Texture2D, All.TextureWrapT, (int) All.ClampToEdge);
|
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapT, (int) All.ClampToEdge);
|
||||||
|
|
||||||
// UV Plane
|
// UV Plane
|
||||||
GL.ActiveTexture (All.Texture1);
|
GL.ActiveTexture (TextureUnit.Texture1);
|
||||||
re = (All) 0x8227; // GL_RG_EXT, RED GREEN component from ARB OpenGL extension
|
re = (All) 0x8227; // GL_RG_EXT, RED GREEN component from ARB OpenGL extension
|
||||||
chromaTexture = container.videoTextureCache.TextureFromImage (pixelBuffer, true, re, textureWidth/2, textureHeight/2, re, DataType.UnsignedByte, 1, out status);
|
chromaTexture = container.videoTextureCache.TextureFromImage (pixelBuffer, true, re, textureWidth/2, textureHeight/2, re, DataType.UnsignedByte, 1, out status);
|
||||||
|
|
||||||
|
@ -326,9 +326,9 @@ namespace GLCameraRipple
|
||||||
Console.WriteLine ("Error creating chroma texture: {0}", status);
|
Console.WriteLine ("Error creating chroma texture: {0}", status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GL.BindTexture ((All) chromaTexture.Target, chromaTexture.Name);
|
GL.BindTexture (chromaTexture.Target, chromaTexture.Name);
|
||||||
GL.TexParameter (All.Texture2D, All.TextureWrapS, (int)All.ClampToEdge);
|
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapS, (int) All.ClampToEdge);
|
||||||
GL.TexParameter (All.Texture2D, All.TextureWrapT, (int) All.ClampToEdge);
|
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapT, (int) All.ClampToEdge);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
sampleBuffer.Dispose ();
|
sampleBuffer.Dispose ();
|
||||||
|
|
|
@ -52,10 +52,10 @@
|
||||||
<CodesignKey>iPhone Developer</CodesignKey>
|
<CodesignKey>iPhone Developer</CodesignKey>
|
||||||
<ConsolePause>False</ConsolePause>
|
<ConsolePause>False</ConsolePause>
|
||||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||||
<CodesignProvision>71febe6c-0ea4-4c1a-bd9d-af13ead83a0e</CodesignProvision>
|
|
||||||
<MtouchProfiling>true</MtouchProfiling>
|
<MtouchProfiling>true</MtouchProfiling>
|
||||||
<MtouchI18n>
|
<MtouchI18n>
|
||||||
</MtouchI18n>
|
</MtouchI18n>
|
||||||
|
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
|
|
@ -29,5 +29,20 @@
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<integer>2</integer>
|
<integer>2</integer>
|
||||||
</array>
|
</array>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>GLPaint-GameView</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.xamarin.GLPaintGameView</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -3,7 +3,7 @@ using OpenTK.Platform.iPhoneOS;
|
||||||
using OpenTK.Graphics.ES11;
|
using OpenTK.Graphics.ES11;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using CoreGraphics;
|
|
||||||
using ObjCRuntime;
|
using ObjCRuntime;
|
||||||
using OpenGLES;
|
using OpenGLES;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
@ -20,7 +20,7 @@ namespace GLPaintGameView
|
||||||
public const float Luminosity = 0.75f;
|
public const float Luminosity = 0.75f;
|
||||||
public const float Saturation = 1.0f;
|
public const float Saturation = 1.0f;
|
||||||
|
|
||||||
uint brushTexture, drawingTexture, drawingFramebuffer;
|
uint brushTexture, drawingTexture;
|
||||||
bool firstTouch;
|
bool firstTouch;
|
||||||
|
|
||||||
CGPoint Location;
|
CGPoint Location;
|
||||||
|
@ -90,7 +90,7 @@ namespace GLPaintGameView
|
||||||
|
|
||||||
public void Erase ()
|
public void Erase ()
|
||||||
{
|
{
|
||||||
GL.Clear ((uint)All.ColorBufferBit);
|
GL.Clear (ClearBufferMask.ColorBufferBit);
|
||||||
|
|
||||||
SwapBuffers ();
|
SwapBuffers ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,6 @@ namespace GameCenterSample
|
||||||
// class-level declarations
|
// class-level declarations
|
||||||
UIWindow window;
|
UIWindow window;
|
||||||
MainViewController viewController;
|
MainViewController viewController;
|
||||||
bool gameCenterAuthenticationComplete = false;
|
|
||||||
string currentPlayerID;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// This method is invoked when the application has loaded and is ready to run. In this
|
// This method is invoked when the application has loaded and is ready to run. In this
|
||||||
|
|
|
@ -89,8 +89,6 @@ namespace GameCenterSample
|
||||||
}
|
}
|
||||||
|
|
||||||
//Create the achievement we want to submit.
|
//Create the achievement we want to submit.
|
||||||
NSString identifier = new NSString ("com.appledts.GameCenterSampleApps.achievement");
|
|
||||||
|
|
||||||
GKAchievement achievement = new GKAchievement ("com.appledts.GameCenterSampleApps.achievement");
|
GKAchievement achievement = new GKAchievement ("com.appledts.GameCenterSampleApps.achievement");
|
||||||
|
|
||||||
achievementsPercentageComplete += 25;
|
achievementsPercentageComplete += 25;
|
||||||
|
|
|
@ -25,5 +25,12 @@
|
||||||
<string>com.xamarin.HttpClient</string>
|
<string>com.xamarin.HttpClient</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>HttpClient</string>
|
<string>HttpClient</string>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -30,5 +30,13 @@
|
||||||
</array>
|
</array>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>5.1.1</string>
|
<string>5.1.1</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>Keychain</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.xamarin.Keychain</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -48,8 +48,6 @@ namespace LazyTableImages {
|
||||||
|
|
||||||
RootViewController RootController { get; set; }
|
RootViewController RootController { get; set; }
|
||||||
|
|
||||||
public UIWindow Window { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This method is invoked when the application has loaded and is ready to run. In this
|
/// This method is invoked when the application has loaded and is ready to run. In this
|
||||||
/// method you should instantiate the window, load the UI into it and then make the window
|
/// method you should instantiate the window, load the UI into it and then make the window
|
||||||
|
|
|
@ -25,5 +25,9 @@
|
||||||
<array>
|
<array>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</array>
|
</array>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>LazyTableImages</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.xamarin.LazyTableImages</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -48,8 +48,6 @@ namespace LazyTableImages {
|
||||||
|
|
||||||
RootViewController RootController { get; set; }
|
RootViewController RootController { get; set; }
|
||||||
|
|
||||||
public UIWindow Window { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This method is invoked when the application has loaded and is ready to run. In this
|
/// This method is invoked when the application has loaded and is ready to run. In this
|
||||||
/// method you should instantiate the window, load the UI into it and then make the window
|
/// method you should instantiate the window, load the UI into it and then make the window
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||||
<ProductVersion>10.0.0</ProductVersion>
|
<ProductVersion>8.0.30703</ProductVersion>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<ProjectGuid>{4D3A8E8A-53D4-4CF5-97D6-9E6199DDB582}</ProjectGuid>
|
<ProjectGuid>{4D3A8E8A-53D4-4CF5-97D6-9E6199DDB582}</ProjectGuid>
|
||||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
@ -24,7 +24,8 @@
|
||||||
<ConsolePause>False</ConsolePause>
|
<ConsolePause>False</ConsolePause>
|
||||||
<MtouchLink>None</MtouchLink>
|
<MtouchLink>None</MtouchLink>
|
||||||
<MtouchDebug>True</MtouchDebug>
|
<MtouchDebug>True</MtouchDebug>
|
||||||
<MtouchI18n />
|
<MtouchI18n>
|
||||||
|
</MtouchI18n>
|
||||||
<MtouchArch>i386</MtouchArch>
|
<MtouchArch>i386</MtouchArch>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||||
|
|
|
@ -28,5 +28,13 @@
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>LineLayout</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.xamarin.LineLayout</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
|
|
|
@ -24,5 +24,13 @@
|
||||||
</array>
|
</array>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>5.1.1</string>
|
<string>5.1.1</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>LowLevelGLPaint</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.xamarin.LowLevelGLPaint</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -25,5 +25,13 @@
|
||||||
<array>
|
<array>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</array>
|
</array>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>MTDWalkthrough</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.xamarin.MTDWalkthrough</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||||
<ProductVersion>10.0.0</ProductVersion>
|
<ProductVersion>8.0.30703</ProductVersion>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<ProjectGuid>{668E9122-90F7-4F6A-A9A2-553BE8267165}</ProjectGuid>
|
<ProjectGuid>{668E9122-90F7-4F6A-A9A2-553BE8267165}</ProjectGuid>
|
||||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
|
|
@ -79,7 +79,7 @@ namespace MapKitSearch {
|
||||||
response = await search.StartAsync ();
|
response = await search.StartAsync ();
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(Exception e){
|
catch {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (response == null)
|
if (response == null)
|
||||||
|
|
|
@ -19,7 +19,6 @@ using UIKit;
|
||||||
using AVFoundation;
|
using AVFoundation;
|
||||||
using CoreVideo;
|
using CoreVideo;
|
||||||
using CoreMedia;
|
using CoreMedia;
|
||||||
using CoreGraphics;
|
|
||||||
using CoreFoundation;
|
using CoreFoundation;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ using UIKit;
|
||||||
using AVFoundation;
|
using AVFoundation;
|
||||||
using CoreVideo;
|
using CoreVideo;
|
||||||
using CoreMedia;
|
using CoreMedia;
|
||||||
using CoreGraphics;
|
|
||||||
using CoreFoundation;
|
using CoreFoundation;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
// Enhancements, suggestions and bug reports can be sent to steve.millar@infinitekdev.com
|
// Enhancements, suggestions and bug reports can be sent to steve.millar@infinitekdev.com
|
||||||
//
|
//
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using AVFoundation;
|
using AVFoundation;
|
||||||
|
|
|
@ -34,5 +34,13 @@
|
||||||
</array>
|
</array>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>MediaCapture</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.xamarin.MediaCapture</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -193,7 +193,6 @@ namespace MediaNotes
|
||||||
|
|
||||||
public void Synchronize (bool initializationSucceeded)
|
public void Synchronize (bool initializationSucceeded)
|
||||||
{
|
{
|
||||||
bool finishedp;
|
|
||||||
if (initializationSucceeded == true) {
|
if (initializationSucceeded == true) {
|
||||||
|
|
||||||
placeHolderActivityView.StopAnimating ();
|
placeHolderActivityView.StopAnimating ();
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
|
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
|
||||||
<data>
|
<data>
|
||||||
<int key="IBDocument.SystemTarget">1536</int>
|
<int key="IBDocument.SystemTarget">2048</int>
|
||||||
<string key="IBDocument.SystemVersion">11E53</string>
|
<string key="IBDocument.SystemVersion">14D136</string>
|
||||||
<string key="IBDocument.InterfaceBuilderVersion">2829</string>
|
<string key="IBDocument.InterfaceBuilderVersion">7531</string>
|
||||||
<string key="IBDocument.AppKitVersion">1138.47</string>
|
<string key="IBDocument.AppKitVersion">1347.57</string>
|
||||||
<string key="IBDocument.HIToolboxVersion">569.00</string>
|
<string key="IBDocument.HIToolboxVersion">758.70</string>
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||||
<string key="NS.object.0">1914</string>
|
<string key="NS.object.0">7520</string>
|
||||||
</object>
|
</object>
|
||||||
<array key="IBDocument.IntegratedClassDependencies">
|
<array key="IBDocument.IntegratedClassDependencies">
|
||||||
<string>IBProxyObject</string>
|
<string>IBProxyObject</string>
|
||||||
|
@ -148,9 +148,6 @@
|
||||||
<int key="IBUIContentMode">7</int>
|
<int key="IBUIContentMode">7</int>
|
||||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||||
<nil key="IBUIHighlightedColor"/>
|
|
||||||
<int key="IBUIBaselineAdjustment">0</int>
|
|
||||||
<float key="IBUIMinimumScaleFactor">0.5</float>
|
|
||||||
<string key="IBUIText">Photo Notes Is Loading</string>
|
<string key="IBUIText">Photo Notes Is Loading</string>
|
||||||
<object class="NSColor" key="IBUITextColor">
|
<object class="NSColor" key="IBUITextColor">
|
||||||
<int key="NSColorSpace">1</int>
|
<int key="NSColorSpace">1</int>
|
||||||
|
@ -159,17 +156,21 @@
|
||||||
<int key="NSID">1</int>
|
<int key="NSID">1</int>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<nil key="IBUIHighlightedColor"/>
|
||||||
|
<int key="IBUIBaselineAdjustment">0</int>
|
||||||
|
<float key="IBUIMinimumFontSize">20</float>
|
||||||
<int key="IBUITextAlignment">1</int>
|
<int key="IBUITextAlignment">1</int>
|
||||||
<object class="IBUIFontDescription" key="IBUIFontDescription">
|
<object class="IBUIFontDescription" key="IBUIFontDescription">
|
||||||
<int key="type">1</int>
|
<int key="type">1</int>
|
||||||
|
<int key="weightCategory">0</int>
|
||||||
<double key="pointSize">40</double>
|
<double key="pointSize">40</double>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSFont" key="IBUIFont">
|
<object class="NSFont" key="IBUIFont">
|
||||||
<string key="NSName">Helvetica</string>
|
<string key="NSName">HelveticaNeue</string>
|
||||||
<double key="NSSize">40</double>
|
<double key="NSSize">40</double>
|
||||||
<int key="NSfFlags">16</int>
|
<int key="NSfFlags">16</int>
|
||||||
</object>
|
</object>
|
||||||
<int key="IBUIAutoshrinkMode">1</int>
|
<bool key="useAutomaticPreferredMaxLayoutWidth">YES</bool>
|
||||||
</object>
|
</object>
|
||||||
</array>
|
</array>
|
||||||
<string key="NSFrame">{{65, 91}, {640, 640}}</string>
|
<string key="NSFrame">{{65, 91}, {640, 640}}</string>
|
||||||
|
@ -193,11 +194,28 @@
|
||||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
|
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
|
||||||
<int key="IBUIStatusBarStyle">2</int>
|
<int key="IBUIStatusBarStyle">2</int>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics">
|
||||||
|
<string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string>
|
||||||
|
<string key="IBUITargetRuntime">IBIPadFramework</string>
|
||||||
|
<string key="IBUIDisplayName">iPad Full Screen</string>
|
||||||
|
<object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap">
|
||||||
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
|
<array key="dict.sortedKeys">
|
||||||
|
<integer value="1"/>
|
||||||
|
<integer value="3"/>
|
||||||
|
</array>
|
||||||
|
<array key="dict.values">
|
||||||
|
<string>{768, 1024}</string>
|
||||||
|
<string>{1024, 768}</string>
|
||||||
|
</array>
|
||||||
|
</object>
|
||||||
|
<int key="IBUIType">1</int>
|
||||||
|
</object>
|
||||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||||
</object>
|
</object>
|
||||||
</array>
|
</array>
|
||||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||||
<array class="NSMutableArray" key="connectionRecords">
|
<array key="connectionRecords">
|
||||||
<object class="IBConnectionRecord">
|
<object class="IBConnectionRecord">
|
||||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||||
<string key="label">view</string>
|
<string key="label">view</string>
|
||||||
|
@ -401,7 +419,7 @@
|
||||||
<string key="superclassName">UIView</string>
|
<string key="superclassName">UIView</string>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">./Classes/PNContainerView.h</string>
|
<string key="minorKey">../PNContainerView.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
|
@ -452,13 +470,137 @@
|
||||||
</dictionary>
|
</dictionary>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">./Classes/PhotoViewController.h</string>
|
<string key="minorKey">../PhotoViewController.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">PhotoViewController</string>
|
||||||
|
<dictionary class="NSMutableDictionary" key="actions">
|
||||||
|
<string key="NextPhoto:">UIBarButtonItem</string>
|
||||||
|
<string key="PreviousPhoto:">UIBarButtonItem</string>
|
||||||
|
</dictionary>
|
||||||
|
<dictionary class="NSMutableDictionary" key="actionInfosByName">
|
||||||
|
<object class="IBActionInfo" key="NextPhoto:">
|
||||||
|
<string key="name">NextPhoto:</string>
|
||||||
|
<string key="candidateClassName">UIBarButtonItem</string>
|
||||||
|
</object>
|
||||||
|
<object class="IBActionInfo" key="PreviousPhoto:">
|
||||||
|
<string key="name">PreviousPhoto:</string>
|
||||||
|
<string key="candidateClassName">UIBarButtonItem</string>
|
||||||
|
</object>
|
||||||
|
</dictionary>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBProjectSource</string>
|
||||||
|
<string key="minorKey">../PhotoViewController.m</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</array>
|
||||||
|
<array class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIActivityIndicatorView</string>
|
||||||
|
<string key="superclassName">UIView</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIActivityIndicatorView.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIBarButtonItem</string>
|
||||||
|
<string key="superclassName">UIBarItem</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIBarButtonItem.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIBarItem</string>
|
||||||
|
<string key="superclassName">NSObject</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIBarItem.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIGestureRecognizer</string>
|
||||||
|
<string key="superclassName">NSObject</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIGestureRecognizer.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIImageView</string>
|
||||||
|
<string key="superclassName">UIView</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIImageView.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UILabel</string>
|
||||||
|
<string key="superclassName">UIView</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UILabel.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIResponder</string>
|
||||||
|
<string key="superclassName">NSObject</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UISearchBar</string>
|
||||||
|
<string key="superclassName">UIView</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UISearchDisplayController</string>
|
||||||
|
<string key="superclassName">NSObject</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIToolbar</string>
|
||||||
|
<string key="superclassName">UIView</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIToolbar.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIView</string>
|
||||||
|
<string key="superclassName">UIResponder</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIView.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">UIViewController</string>
|
||||||
|
<string key="superclassName">UIResponder</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBFrameworkSource</string>
|
||||||
|
<string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</array>
|
</array>
|
||||||
</object>
|
</object>
|
||||||
<int key="IBDocument.localizationMode">0</int>
|
<int key="IBDocument.localizationMode">0</int>
|
||||||
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
|
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
|
||||||
|
<bool key="IBDocument.previouslyAttemptedUpgradeToXcode5">NO</bool>
|
||||||
|
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||||
|
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||||
|
<integer value="4600" key="NS.object.0"/>
|
||||||
|
</object>
|
||||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||||
<dictionary class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
|
<dictionary class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
|
||||||
|
@ -466,6 +608,5 @@
|
||||||
<string key="AssistPrevious.png">{16, 20}</string>
|
<string key="AssistPrevious.png">{16, 20}</string>
|
||||||
<string key="NoPhotos.png">{410, 263}</string>
|
<string key="NoPhotos.png">{410, 263}</string>
|
||||||
</dictionary>
|
</dictionary>
|
||||||
<string key="IBCocoaTouchPluginVersion">1914</string>
|
|
||||||
</data>
|
</data>
|
||||||
</archive>
|
</archive>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
|
@ -17,7 +17,6 @@ namespace MidiTest
|
||||||
{
|
{
|
||||||
AUGraph processingGraph;
|
AUGraph processingGraph;
|
||||||
AudioUnit.AudioUnit samplerUnit;
|
AudioUnit.AudioUnit samplerUnit;
|
||||||
AudioUnit.AudioUnit ioUnit;
|
|
||||||
|
|
||||||
MidiClient virtualMidi;
|
MidiClient virtualMidi;
|
||||||
MidiEndpoint virtualEndpoint;
|
MidiEndpoint virtualEndpoint;
|
||||||
|
@ -53,7 +52,6 @@ namespace MidiTest
|
||||||
|
|
||||||
samplerUnit = processingGraph.GetNodeInfo (samplerNode);
|
samplerUnit = processingGraph.GetNodeInfo (samplerNode);
|
||||||
|
|
||||||
ioUnit = processingGraph.GetNodeInfo (ioNode);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,7 @@ namespace MonoCatalog
|
||||||
if (!e.Continue)
|
if (!e.Continue)
|
||||||
DismissModalViewController (true);
|
DismissModalViewController (true);
|
||||||
};
|
};
|
||||||
|
|
||||||
p.PerformAction += (o, e) => {
|
p.PerformAction += (o, e) => {
|
||||||
Console.Error.WriteLine ("# perform action; person={0}", e.Person);
|
Console.Error.WriteLine ("# perform action; person={0}", e.Person);
|
||||||
toString.Text = e.Person.ToString ();
|
toString.Text = e.Person.ToString ();
|
||||||
|
@ -60,6 +61,7 @@ namespace MonoCatalog
|
||||||
if (!e.Continue)
|
if (!e.Continue)
|
||||||
DismissModalViewController (true);
|
DismissModalViewController (true);
|
||||||
};
|
};
|
||||||
|
|
||||||
p.Cancelled += (o, e) => {
|
p.Cancelled += (o, e) => {
|
||||||
Console.Error.WriteLine ("# select Person cancelled.");
|
Console.Error.WriteLine ("# select Person cancelled.");
|
||||||
toString.Text = "Cancelled";
|
toString.Text = "Cancelled";
|
||||||
|
|
|
@ -23,5 +23,11 @@
|
||||||
<string>5.1.1</string>
|
<string>5.1.1</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.xamarin.monocatalog</string>
|
<string>com.xamarin.monocatalog</string>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using CoreGraphics;
|
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
|
|
|
@ -24,10 +24,11 @@
|
||||||
<ConsolePause>False</ConsolePause>
|
<ConsolePause>False</ConsolePause>
|
||||||
<MtouchDebug>True</MtouchDebug>
|
<MtouchDebug>True</MtouchDebug>
|
||||||
<MtouchProfiling>True</MtouchProfiling>
|
<MtouchProfiling>True</MtouchProfiling>
|
||||||
<MtouchLink>None</MtouchLink>
|
|
||||||
<MtouchI18n>
|
<MtouchI18n>
|
||||||
</MtouchI18n>
|
</MtouchI18n>
|
||||||
<MtouchArch>i386</MtouchArch>
|
<MtouchArch>i386</MtouchArch>
|
||||||
|
<CodesignKey>iPhone Developer</CodesignKey>
|
||||||
|
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
|
|
@ -60,25 +60,5 @@ namespace MoviePlaybackSample
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Obsolete]
|
|
||||||
public override void ViewDidUnload()
|
|
||||||
{
|
|
||||||
base.ViewDidUnload();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete]
|
|
||||||
public override bool ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation)
|
|
||||||
{
|
|
||||||
// Return true for supported orientations
|
|
||||||
if (UserInterfaceIdiomIsPhone)
|
|
||||||
{
|
|
||||||
return (toInterfaceOrientation != UIInterfaceOrientation.PortraitUpsideDown);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ using System.Diagnostics;
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using AVFoundation;
|
using AVFoundation;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace MultichannelMixer
|
namespace MultichannelMixer
|
||||||
{
|
{
|
||||||
|
@ -73,7 +74,7 @@ namespace MultichannelMixer
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async void FinishedLaunching (UIApplication application)
|
public override void FinishedLaunching (UIApplication application)
|
||||||
{
|
{
|
||||||
// Configure the audio session
|
// Configure the audio session
|
||||||
var sessionInstance = AVAudioSession.SharedInstance ();
|
var sessionInstance = AVAudioSession.SharedInstance ();
|
||||||
|
|
|
@ -21,5 +21,12 @@
|
||||||
<array>
|
<array>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</array>
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -6,7 +6,6 @@ using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreImage;
|
using CoreImage;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace OpenGLES20Example
|
namespace OpenGLES20Example
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,6 @@ using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreImage;
|
using CoreImage;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace PerVertexDirectionalLighting
|
namespace PerVertexDirectionalLighting
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
namespace PaintCode
|
namespace PaintCode
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,6 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
||||||
namespace PaintCode
|
namespace PaintCode
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
||||||
namespace PaintCode
|
namespace PaintCode
|
||||||
|
@ -111,12 +110,13 @@ namespace PaintCode
|
||||||
|
|
||||||
using (var colorSpace = CGColorSpace.CreateDeviceRGB ()) {
|
using (var colorSpace = CGColorSpace.CreateDeviceRGB ()) {
|
||||||
|
|
||||||
//// Abstracted Graphic Attributes
|
// Abstracted Graphic Attributes
|
||||||
var textContent = this.Title (UIControlState.Normal); //"STOP";
|
// var textContent = this.Title (UIControlState.Normal); //"STOP";
|
||||||
var font = UIFont.SystemFontOfSize (18);
|
// var font = UIFont.SystemFontOfSize (18);
|
||||||
|
|
||||||
// ------------- START PAINTCODE -------------
|
// ------------- START PAINTCODE -------------
|
||||||
|
|
||||||
//// Color Declarations
|
// Color Declarations
|
||||||
UIColor frameColorTop = UIColor.FromRGBA (0.20f, 0.20f, 0.20f, 1.00f);
|
UIColor frameColorTop = UIColor.FromRGBA (0.20f, 0.20f, 0.20f, 1.00f);
|
||||||
UIColor frameShadowColor = UIColor.FromRGBA (1.00f, 1.00f, 1.00f, 0.40f);
|
UIColor frameShadowColor = UIColor.FromRGBA (1.00f, 1.00f, 1.00f, 0.40f);
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ namespace PaintCode
|
||||||
(buttonColorRGBA [3] * 0.2f + 0.8f)
|
(buttonColorRGBA [3] * 0.2f + 0.8f)
|
||||||
);
|
);
|
||||||
|
|
||||||
//// Gradient Declarations
|
// Gradient Declarations
|
||||||
var glossyGradientColors = new CGColor [] {
|
var glossyGradientColors = new CGColor [] {
|
||||||
glossyColorUp.CGColor,
|
glossyColorUp.CGColor,
|
||||||
glossyColorBottom.CGColor
|
glossyColorBottom.CGColor
|
||||||
|
@ -141,22 +141,22 @@ namespace PaintCode
|
||||||
var glossyGradientLocations = new nfloat [] { 0, 1 };
|
var glossyGradientLocations = new nfloat [] { 0, 1 };
|
||||||
var glossyGradient = new CGGradient (colorSpace, glossyGradientColors, glossyGradientLocations);
|
var glossyGradient = new CGGradient (colorSpace, glossyGradientColors, glossyGradientLocations);
|
||||||
|
|
||||||
//// Shadow Declarations
|
// Shadow Declarations
|
||||||
var frameInnerShadow = frameShadowColor.CGColor;
|
var frameInnerShadow = frameShadowColor.CGColor;
|
||||||
var frameInnerShadowOffset = new CGSize (0, -0);
|
var frameInnerShadowOffset = new CGSize (0, -0);
|
||||||
var frameInnerShadowBlurRadius = 3;
|
const int frameInnerShadowBlurRadius = 3;
|
||||||
var buttonInnerShadow = UIColor.Black.CGColor;
|
var buttonInnerShadow = UIColor.Black.CGColor;
|
||||||
var buttonInnerShadowOffset = new CGSize (0, -0);
|
var buttonInnerShadowOffset = new CGSize (0, -0);
|
||||||
var buttonInnerShadowBlurRadius = 12;
|
const int buttonInnerShadowBlurRadius = 12;
|
||||||
var textShadow = UIColor.Black.CGColor;
|
var textShadow = UIColor.Black.CGColor;
|
||||||
var textShadowOffset = new CGSize (0, -0);
|
var textShadowOffset = new CGSize (0, -0);
|
||||||
var textShadowBlurRadius = 1;
|
const int textShadowBlurRadius = 1;
|
||||||
var buttonShadow = UIColor.Black.CGColor;
|
var buttonShadow = UIColor.Black.CGColor;
|
||||||
|
|
||||||
var buttonShadowOffset = new CGSize (0, isPressed ? 0 : 2); // ADDED this code after PaintCode
|
var buttonShadowOffset = new CGSize (0, isPressed ? 0 : 2); // ADDED this code after PaintCode
|
||||||
var buttonShadowBlurRadius = isPressed ? 2 : 3; // ADDED this code after PaintCode
|
var buttonShadowBlurRadius = isPressed ? 2 : 3; // ADDED this code after PaintCode
|
||||||
|
|
||||||
//// outerFrame Drawing
|
// outerFrame Drawing
|
||||||
var outerFramePath = UIBezierPath.FromRoundedRect (new CGRect (2.5f, 1.5f, 120, 32), 8);
|
var outerFramePath = UIBezierPath.FromRoundedRect (new CGRect (2.5f, 1.5f, 120, 32), 8);
|
||||||
context.SaveState ();
|
context.SaveState ();
|
||||||
context.SetShadow (buttonShadowOffset, buttonShadowBlurRadius, buttonShadow);
|
context.SetShadow (buttonShadowOffset, buttonShadowBlurRadius, buttonShadow);
|
||||||
|
@ -168,14 +168,14 @@ namespace PaintCode
|
||||||
outerFramePath.LineWidth = 1;
|
outerFramePath.LineWidth = 1;
|
||||||
outerFramePath.Stroke ();
|
outerFramePath.Stroke ();
|
||||||
|
|
||||||
//// innerFrame Drawing
|
// innerFrame Drawing
|
||||||
var innerFramePath = UIBezierPath.FromRoundedRect (new CGRect (5.5f, 4.5f, 114, 26), 5);
|
var innerFramePath = UIBezierPath.FromRoundedRect (new CGRect (5.5f, 4.5f, 114, 26), 5);
|
||||||
context.SaveState ();
|
context.SaveState ();
|
||||||
context.SetShadow (frameInnerShadowOffset, frameInnerShadowBlurRadius, frameInnerShadow);
|
context.SetShadow (frameInnerShadowOffset, frameInnerShadowBlurRadius, frameInnerShadow);
|
||||||
buttonColor.SetFill ();
|
buttonColor.SetFill ();
|
||||||
innerFramePath.Fill ();
|
innerFramePath.Fill ();
|
||||||
|
|
||||||
////// innerFrame Inner Shadow
|
// innerFrame Inner Shadow
|
||||||
var innerFrameBorderRect = innerFramePath.Bounds;
|
var innerFrameBorderRect = innerFramePath.Bounds;
|
||||||
innerFrameBorderRect.Inflate (buttonInnerShadowBlurRadius, buttonInnerShadowBlurRadius);
|
innerFrameBorderRect.Inflate (buttonInnerShadowBlurRadius, buttonInnerShadowBlurRadius);
|
||||||
innerFrameBorderRect.Offset (-buttonInnerShadowOffset.Width, -buttonInnerShadowOffset.Height);
|
innerFrameBorderRect.Offset (-buttonInnerShadowOffset.Width, -buttonInnerShadowOffset.Height);
|
||||||
|
@ -209,15 +209,15 @@ namespace PaintCode
|
||||||
innerFramePath.LineWidth = 1;
|
innerFramePath.LineWidth = 1;
|
||||||
innerFramePath.Stroke ();
|
innerFramePath.Stroke ();
|
||||||
|
|
||||||
//// Rounded Rectangle Drawing
|
// Rounded Rectangle Drawing
|
||||||
var roundedRectanglePath = UIBezierPath.FromRoundedRect (new CGRect (8, 6, 109, 9), 4);
|
var roundedRectanglePath = UIBezierPath.FromRoundedRect (new CGRect (8, 6, 109, 9), 4);
|
||||||
context.SaveState ();
|
context.SaveState ();
|
||||||
roundedRectanglePath.AddClip ();
|
roundedRectanglePath.AddClip ();
|
||||||
context.DrawLinearGradient (glossyGradient, new CGPoint (62.5f, 6), new CGPoint (62.5f, 15), 0);
|
context.DrawLinearGradient (glossyGradient, new CGPoint (62.5f, 6), new CGPoint (62.5f, 15), 0);
|
||||||
context.RestoreState ();
|
context.RestoreState ();
|
||||||
|
|
||||||
//// Text Drawing
|
// Text Drawing
|
||||||
var textRect = new CGRect (18, 6, 90, 28);
|
// var textRect = new CGRect (18, 6, 90, 28);
|
||||||
context.SaveState ();
|
context.SaveState ();
|
||||||
context.SetShadow(textShadowOffset, textShadowBlurRadius, textShadow);
|
context.SetShadow(textShadowOffset, textShadowBlurRadius, textShadow);
|
||||||
glossyColorUp.SetFill ();
|
glossyColorUp.SetFill ();
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
using CoreGraphics;
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
||||||
namespace PaintCode
|
namespace PaintCode
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
|
||||||
|
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<key>UISupportedInterfaceOrientations</key>
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
<array>
|
<array>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>7.0</string>
|
<string>7.0</string>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using CoreGraphics;
|
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
|
@ -14,15 +13,12 @@ namespace QRchestra
|
||||||
{
|
{
|
||||||
public partial class ReceiveViewController : UIViewController
|
public partial class ReceiveViewController : UIViewController
|
||||||
{
|
{
|
||||||
UIPopoverController sendPopoverController;
|
|
||||||
|
|
||||||
int barcodeIndex;
|
int barcodeIndex;
|
||||||
|
|
||||||
AVCaptureVideoPreviewLayer previewLayer;
|
AVCaptureVideoPreviewLayer previewLayer;
|
||||||
CALayer barcodeTargetLayer;
|
CALayer barcodeTargetLayer;
|
||||||
SessionManager sessionManager;
|
SessionManager sessionManager;
|
||||||
Synth synth;
|
Synth synth;
|
||||||
NSTimer stepTimer;
|
|
||||||
NSTimer barcodeTimer;
|
NSTimer barcodeTimer;
|
||||||
|
|
||||||
public UIColor OverlayColor {
|
public UIColor OverlayColor {
|
||||||
|
@ -81,8 +77,6 @@ namespace QRchestra
|
||||||
|
|
||||||
synth = new Synth ();
|
synth = new Synth ();
|
||||||
synth.LoadPreset (this);
|
synth.LoadPreset (this);
|
||||||
|
|
||||||
stepTimer = NSTimer.CreateRepeatingScheduledTimer (0.15, step);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void handleTap (UIGestureRecognizer recognizer)
|
partial void handleTap (UIGestureRecognizer recognizer)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
using CoreGraphics;
|
|
||||||
using UIKit;
|
using UIKit;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using CoreAnimation;
|
using CoreAnimation;
|
||||||
|
@ -18,8 +17,6 @@ namespace QRchestra
|
||||||
int[] currentBank = new [] { 0, 0, 0, 0 };
|
int[] currentBank = new [] { 0, 0, 0, 0 };
|
||||||
const int maxNumberOfBanks = 3;
|
const int maxNumberOfBanks = 3;
|
||||||
|
|
||||||
string machineReadableCodeType;
|
|
||||||
|
|
||||||
List<UIImageView> keyImageViews;
|
List<UIImageView> keyImageViews;
|
||||||
|
|
||||||
public SendViewController () : base ("SendViewController", null)
|
public SendViewController () : base ("SendViewController", null)
|
||||||
|
|
|
@ -19,15 +19,10 @@ namespace QRchestra
|
||||||
DispatchQueue delegateCallbackQueue;
|
DispatchQueue delegateCallbackQueue;
|
||||||
DispatchQueue sessionQueue;
|
DispatchQueue sessionQueue;
|
||||||
|
|
||||||
List<double> previousSecondTimestamps;
|
|
||||||
|
|
||||||
AVCaptureDeviceInput videoInput;
|
AVCaptureDeviceInput videoInput;
|
||||||
AVCaptureDevice videoDevice;
|
AVCaptureDevice videoDevice;
|
||||||
AVCaptureConnection audioConnection;
|
|
||||||
AVCaptureConnection videoConnection;
|
|
||||||
|
|
||||||
bool running;
|
bool running;
|
||||||
bool startCaptureSessionOnEnteringForeground;
|
|
||||||
|
|
||||||
NSObject applicationWillEnterForegroundNotificationObserver;
|
NSObject applicationWillEnterForegroundNotificationObserver;
|
||||||
|
|
||||||
|
@ -39,7 +34,6 @@ namespace QRchestra
|
||||||
|
|
||||||
public SessionManager ()
|
public SessionManager ()
|
||||||
{
|
{
|
||||||
previousSecondTimestamps = new List<double> ();
|
|
||||||
sessionQueue = new DispatchQueue ("com.apple.sample.sessionmanager.capture");
|
sessionQueue = new DispatchQueue ("com.apple.sample.sessionmanager.capture");
|
||||||
pipelineRunningTask = 0;
|
pipelineRunningTask = 0;
|
||||||
}
|
}
|
||||||
|
@ -133,9 +127,6 @@ namespace QRchestra
|
||||||
NSError error = (NSError)notification.UserInfo [AVCaptureSession.ErrorKey];
|
NSError error = (NSError)notification.UserInfo [AVCaptureSession.ErrorKey];
|
||||||
if (error.Code == (int)AVError.DeviceIsNotAvailableInBackground) {
|
if (error.Code == (int)AVError.DeviceIsNotAvailableInBackground) {
|
||||||
Console.WriteLine ("Device not available in background");
|
Console.WriteLine ("Device not available in background");
|
||||||
|
|
||||||
if (running)
|
|
||||||
startCaptureSessionOnEnteringForeground = true;
|
|
||||||
} else if (error.Code == (int)AVError.MediaServicesWereReset)
|
} else if (error.Code == (int)AVError.MediaServicesWereReset)
|
||||||
Console.WriteLine ("Media services were reset");
|
Console.WriteLine ("Media services were reset");
|
||||||
else
|
else
|
||||||
|
@ -168,7 +159,6 @@ namespace QRchestra
|
||||||
void applicationWillEnterForeground ()
|
void applicationWillEnterForeground ()
|
||||||
{
|
{
|
||||||
sessionQueue.DispatchSync (delegate {
|
sessionQueue.DispatchSync (delegate {
|
||||||
startCaptureSessionOnEnteringForeground = false;
|
|
||||||
if (running)
|
if (running)
|
||||||
CaptureSession.StartRunning ();
|
CaptureSession.StartRunning ();
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче