From e131297e7fea6c30a1867d524cee4ba3bbbfb1f9 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 4 Nov 2009 21:22:41 +0000 Subject: [PATCH] Removed System.Drawing dependency from QuickStart. --- Build.exe | Bin 270336 -> 270336 bytes .../Build/Resources/QuickStart.Prebuild.xml | 1 - Source/QuickStart/Game.cs | 13 +++++++------ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Build.exe b/Build.exe index 208433453020aa6d098d09959f70726a3ba2d547..fba5ab49919e12536d2a3ae6509a3458eab29d68 100644 GIT binary patch delta 4878 zcmZ8l3v^V)8UE+a-8*+T$xUW&vYR)HNWA1lfFK|$M2LuQ6e&n8AO}6E%EAp)(VAU^ z)_SODy4H)>dNkGteOXLxq{vZgIa;L^L|c)E2-HKhKClNBAGF`h?xn$n{pSC_`Tu|Z zc~3U`Tv_(Hvb%r8XMTL7cTF8T-n-#j>=!x4GBNW#PLv{|k8^uF>iZvOvz>p+g5aJ=Z|QpcfNa>qZb=uqj}7@$%ecmdMl_o=X&KblW(Mfeq|r55O$<%E33M zd?-t{8;IsrfJi3*-AO>q$|^f;+*sWM3$wA_$m(*Ihr;qZ;i@arm2hY*uyY2n8PG(k z@mifQ$-L*aCv2*8Q_Ij)O&DOsiORuY??0Js^*4g>YE;9m{`oAF-8Pd~`2s-aZWF*mpRAPNHk_?41^6#+VUkBbuc=f8jXUT}{5M z@NYqM;bHN|yjX5ayqXo|-i$Y99s#Y_NOgYxi)2y4e+OirEK2$+bqJOIk-Si)=MIb~ zkx0R%SQdva#Yta{NS`bYU5cyp#DW>@QX)(8E}1@A68e;cJ|$JYns-!bpYe0Cm;A30 zcW|PPbi!7hFi|Ir;Dm`fgIg_?rJ+k{!6hS0L!Z(x)6&5{WwI>vDGQq^3th^>M9cDt z_G8KU6QU<4Dy2;LD?#>2ne^|<3t@ze3^SF3TaC+j=o1fp;-ODGOf){&#g%U8;)X76 z=;DTny4s~j@6Y>?O2%_Ak>kI@+2cR-jl|1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xml index 995a0dd2..d2deb4b2 100644 --- a/Source/Build/Resources/QuickStart.Prebuild.xml +++ b/Source/Build/Resources/QuickStart.Prebuild.xml @@ -34,7 +34,6 @@ - diff --git a/Source/QuickStart/Game.cs b/Source/QuickStart/Game.cs index b94394e9..1fdec1f0 100644 --- a/Source/QuickStart/Game.cs +++ b/Source/QuickStart/Game.cs @@ -1,5 +1,6 @@ +// Released to the public domain. Use, modify and relicense at will. + using System; -using System.Drawing; using OpenTK; using OpenTK.Graphics; @@ -25,7 +26,7 @@ namespace StarterKit { base.OnLoad(e); - GL.ClearColor(System.Drawing.Color.MidnightBlue); + GL.ClearColor(0.1f, 0.2f, 0.5f, 0.0f); GL.Enable(EnableCap.DepthTest); } @@ -39,7 +40,7 @@ namespace StarterKit { base.OnResize(e); - GL.Viewport(ClientRectangle); + GL.Viewport(ClientRectangle.X, ClientRectangle.Y, ClientRectangle.Width, ClientRectangle.Height); Matrix4 projection = Matrix4.CreatePerspectiveFieldOfView((float)Math.PI / 4, Width / (float)Height, 1.0f, 64.0f); GL.MatrixMode(MatrixMode.Projection); @@ -74,9 +75,9 @@ namespace StarterKit GL.Begin(BeginMode.Triangles); - GL.Color3(Color.Yellow); GL.Vertex3(-1.0f, -1.0f, 4.0f); - GL.Color3(Color.Red); GL.Vertex3(1.0f, -1.0f, 4.0f); - GL.Color3(Color.LightCyan); GL.Vertex3(0.0f, 1.0f, 4.0f); + GL.Color3(1.0f, 1.0f, 0.0f); GL.Vertex3(-1.0f, -1.0f, 4.0f); + GL.Color3(1.0f, 0.0f, 0.0f); GL.Vertex3(1.0f, -1.0f, 4.0f); + GL.Color3(0.2f, 0.9f, 1.0f); GL.Vertex3(0.0f, 1.0f, 4.0f); GL.End();