From e60df8ba28e0e400989fb8251669d71a493b16d8 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 4 Nov 2009 00:57:14 +0000 Subject: [PATCH] Added default application icon. --- .../Examples/Properties/Resources.Designer.cs | 22 +++++++++++------- Source/Examples/Properties/Resources.resx | 5 +++- Source/Examples/Resources/App.ico | Bin 0 -> 5430 bytes Source/Examples/Utilities.cs | 2 ++ 4 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 Source/Examples/Resources/App.ico diff --git a/Source/Examples/Properties/Resources.Designer.cs b/Source/Examples/Properties/Resources.Designer.cs index 38530858..6b6e7a23 100644 --- a/Source/Examples/Properties/Resources.Designer.cs +++ b/Source/Examples/Properties/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4918 +// Runtime Version:2.0.50727.4200 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -60,6 +60,13 @@ namespace OpenTK.Examples.Properties { } } + internal static System.Drawing.Icon App { + get { + object obj = ResourceManager.GetObject("App", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized string similar to #region License ///// @@ -403,7 +410,7 @@ namespace OpenTK.Examples.Properties { ///using OpenTK; ///using OpenTK.Graphics; ///using OpenTK.Graphics.OpenGL; - /// /// [rest of string was truncated]";. + ///u [rest of string was truncated]";. /// internal static string JuliaSetFractal { get { @@ -448,6 +455,7 @@ namespace OpenTK.Examples.Properties { ///#endregion /// ///using System; + ///using System.Diagnostics; ///using System.Threading; ///using System.IO; /// @@ -458,8 +466,7 @@ namespace OpenTK.Examples.Properties { ///{ /// [Example("Playback", ExampleCategory.OpenAL, "1.1", Documentation="Playback")] /// public class Playback - /// { - /// static readonly [rest of string was truncated]";. + /// [rest of string was truncated]";. /// internal static string Playback { get { @@ -585,6 +592,7 @@ namespace OpenTK.Examples.Properties { ///#endregion /// ///using System; + ///using System.Diagnostics; ///using System.Collections.Generic; ///using System.Text; ///using System.Threading; @@ -595,9 +603,7 @@ namespace OpenTK.Examples.Properties { /// ///namespace Examples.OpenAL ///{ - /// // Not working correctly (sound pops). - /// - /// //[Example("Strea [rest of string was truncated]";. + /// // Not working correctly (sound pops [rest of string was truncated]";. /// internal static string StreamingPlayback { get { @@ -749,7 +755,7 @@ namespace OpenTK.Examples.Properties { /// ///namespace Examples.Tutorial ///{ - /// [Example("Vertex Buffer Objects", ExampleCategory.OpenGL, "1 [rest of string was truncated]";. + /// [Example("Static Vertex Buffer Objects", ExampleCategory.Ope [rest of string was truncated]";. /// internal static string VertexBufferObject { get { diff --git a/Source/Examples/Properties/Resources.resx b/Source/Examples/Properties/Resources.resx index 4eb44aaf..9d09d3b8 100644 --- a/Source/Examples/Properties/Resources.resx +++ b/Source/Examples/Properties/Resources.resx @@ -38,7 +38,7 @@ The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not - EXTensible. For a given mimetype the value must be set accordingly: + extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can @@ -199,4 +199,7 @@ ..\OpenGL\GLSL\SimpleGLSL.cs;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + ..\Resources\App.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Source/Examples/Resources/App.ico b/Source/Examples/Resources/App.ico new file mode 100644 index 0000000000000000000000000000000000000000..e6ade5b1fd04583c6bde12d473178d24c639685f GIT binary patch literal 5430 zcmd5=X;jqL6`wRov-CrAx}BzJtB6YgQBgF4;6ezs4X`~TnnzTfY@`|f@3 zzL7{?ko-)taG`|Sg%af(63J4DMDhl;{C@l;iR1=7zfFClBH2vB{Xg~tAbB1Ua1t^= zB6-nB`27Wz=fQfGF5xlmt0cc9`7O!sN!}v)6Ul;k!hQUWb$(6q3l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yl5n_mR*7?y>xama zNVJ^W1H&4rsm2VaJ7Fx@ny;sy=Tm$miw_jZdyN+tq(thzMHY`RjsPb`^ zYMf#^*SLP>v0TUTxmMI!0*Bj|;5x2_Z;u??x@+J}^;5hu7uus1qc2NsQ>0lT5B6Qs z!j@_}bzvygBq3toy`_jnw>A%HLkg(qERLWW#C|}D{bSw8&klL;veaJ0q}1K~-kGr; zI1Fj9g}%$`lSMsoN12RITeEOxycL^2929l5<5&k`Cwh?MW+v8;V}N5JHP-un@n{E< zv?Ykr7Ga<|2Dcj$alI)WN;-?kLOry_p=yDPCa(Nm1-Mh zw;Y*-6QrwvMw5#>&6!Y*XwYz_2PNk{W?0uaehnCmDfL)>ueLDqVL7dH<&7cqUDIQ- zArswMK@alCX4aWMmd6`@A|}Z%x`36VIWDH(u<*0NR|Y*pd!PR8`-=WW8>W99S>j(X Pe0jR%Zw5Uc!(;yg{>#n? literal 0 HcmV?d00001 diff --git a/Source/Examples/Utilities.cs b/Source/Examples/Utilities.cs index ce2d1690..6e50fdcf 100644 --- a/Source/Examples/Utilities.cs +++ b/Source/Examples/Utilities.cs @@ -33,12 +33,14 @@ namespace Examples { ExampleAttribute info = GetExampleAttribute(window.GetType()); window.Title = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title); + window.Icon = OpenTK.Examples.Properties.Resources.App; } public static void SetWindowTitle(System.Windows.Forms.Form window) { ExampleAttribute info = GetExampleAttribute(window.GetType()); window.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title); + window.Icon = OpenTK.Examples.Properties.Resources.App; } static ExampleAttribute GetExampleAttribute(Type type)