зеркало из https://github.com/xamarin/ios-samples.git
[OpenGL] Update GLKBaseEffectDrawing sample
This commit is contained in:
Родитель
ca00500767
Коммит
b49b914c5b
|
@ -6,6 +6,7 @@ using GLKit;
|
|||
using MonoTouch;
|
||||
using OpenTK.Graphics.ES20;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
|
||||
namespace GLKBaseEffectDrawing
|
||||
{
|
||||
|
@ -34,7 +35,6 @@ namespace GLKBaseEffectDrawing
|
|||
GLKView view = View as GLKView;
|
||||
view.Context = context;
|
||||
view.DrawableDepthFormat = GLKViewDrawableDepthFormat.Format24;
|
||||
view.DrawInRect += Draw;
|
||||
|
||||
setupGL ();
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ namespace GLKBaseEffectDrawing
|
|||
rotation += (float)TimeSinceLastUpdate * 0.5f;
|
||||
}
|
||||
|
||||
public void Draw (object sender, GLKViewDrawEventArgs args)
|
||||
public override void DrawInRect (GLKView view, CGRect rect)
|
||||
{
|
||||
GL.ClearColor (0.65f, 0.65f, 0.65f, 1f);
|
||||
GL.Clear (ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
|
||||
|
|
|
@ -83,7 +83,6 @@ Global
|
|||
{F17A7552-709F-4109-AFD2-FE557F0C4CD7}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
|
||||
EndGlobalSection
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
StartupItem = PerVertexDirectionalLighting\PerVertexDirectionalLighting.csproj
|
||||
Policies = $0
|
||||
$0.TextStylePolicy = $1
|
||||
$1.inheritsSet = Mono
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{850F3504-CFDB-4D3F-B9F8-2A7B1D451C36}</ProjectGuid>
|
||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{522284B6-ED61-4F9D-8BA4-F7A863126445}</ProjectGuid>
|
||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
|
|
Загрузка…
Ссылка в новой задаче