From f34436f131f6492195a4453e317103d2ef027483 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 11 Oct 2006 22:10:29 +0000 Subject: [PATCH] Placed the Framework into a new project (with corresponding project folder). --- OpenTK.sln | 12 +++- Source/Examples/OpenGL/GLSL/Lesson01/Cube.cs | 1 + .../OpenGL/GLSL/Lesson01/GLSL.Lesson01.csproj | 4 ++ .../GLForm.cs => Framework/Framework.cs} | 7 +- Source/Framework/Framework.csproj | 65 +++++++++++++++++++ Source/Framework/Properties/AssemblyInfo.cs | 35 ++++++++++ Source/OpenGL/OpenGL/OpenTK.OpenGL.csproj | 3 - 7 files changed, 120 insertions(+), 7 deletions(-) rename Source/{OpenGL/OpenGL/Forms/GLForm.cs => Framework/Framework.cs} (96%) create mode 100644 Source/Framework/Framework.csproj create mode 100644 Source/Framework/Properties/AssemblyInfo.cs diff --git a/OpenTK.sln b/OpenTK.sln index 0c59e8e3..8fd3a12c 100644 --- a/OpenTK.sln +++ b/OpenTK.sln @@ -49,8 +49,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OpenGL", "OpenGL", "{2F3FEA EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenTK.OpenGL", "Source\OpenGL\OpenGL\OpenTK.OpenGL.csproj", "{836876D1-0C8D-4240-BEE4-859D9D3D46CB}" ProjectSection(ProjectDependencies) = postProject - {1EDDE592-3923-4898-9006-3D69579E1745} = {1EDDE592-3923-4898-9006-3D69579E1745} {FDFA00B6-FA81-4658-86E1-F312EFB42E1C} = {FDFA00B6-FA81-4658-86E1-F312EFB42E1C} + {1EDDE592-3923-4898-9006-3D69579E1745} = {1EDDE592-3923-4898-9006-3D69579E1745} EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenTK.OpenGL.Bind", "Source\OpenGL\Bind\OpenTK.OpenGL.Bind.csproj", "{1EDDE592-3923-4898-9006-3D69579E1745}" @@ -63,6 +63,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GLSL.Lesson01", "Source\Exa EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenTK.Platform.X", "Source\Platform\X\OpenTK.Platform.X.csproj", "{E3F35BD6-67CE-4AD5-AB98-043CF072A75A}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Framework", "Framework", "{508EF114-8C2A-470D-89FE-5AC15B336B4C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Framework", "Source\Framework\Framework.csproj", "{26B55626-4EAB-4CAE-82FE-93CD6564D9EA}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -89,6 +93,10 @@ Global {E3F35BD6-67CE-4AD5-AB98-043CF072A75A}.Debug|Any CPU.Build.0 = Debug|Any CPU {E3F35BD6-67CE-4AD5-AB98-043CF072A75A}.Release|Any CPU.ActiveCfg = Release|Any CPU {E3F35BD6-67CE-4AD5-AB98-043CF072A75A}.Release|Any CPU.Build.0 = Release|Any CPU + {26B55626-4EAB-4CAE-82FE-93CD6564D9EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {26B55626-4EAB-4CAE-82FE-93CD6564D9EA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {26B55626-4EAB-4CAE-82FE-93CD6564D9EA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {26B55626-4EAB-4CAE-82FE-93CD6564D9EA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -101,11 +109,13 @@ Global {84EAC24B-BF87-477C-838D-7110A1A24D41} = {7E640424-E2CD-4DD5-9392-7A706D73930E} {30996477-EDDE-4E45-AB3D-5E466314C755} = {7E640424-E2CD-4DD5-9392-7A706D73930E} {2F3FEAD4-0FBD-48CC-AFA0-29FFF28284C2} = {7E640424-E2CD-4DD5-9392-7A706D73930E} + {508EF114-8C2A-470D-89FE-5AC15B336B4C} = {7E640424-E2CD-4DD5-9392-7A706D73930E} {FDFA00B6-FA81-4658-86E1-F312EFB42E1C} = {50DCE788-72FC-47E0-A6BD-50BCCE3FCE5B} {E3F35BD6-67CE-4AD5-AB98-043CF072A75A} = {50DCE788-72FC-47E0-A6BD-50BCCE3FCE5B} {836876D1-0C8D-4240-BEE4-859D9D3D46CB} = {2F3FEAD4-0FBD-48CC-AFA0-29FFF28284C2} {1EDDE592-3923-4898-9006-3D69579E1745} = {2F3FEAD4-0FBD-48CC-AFA0-29FFF28284C2} {70FA6EE8-62C6-437F-AD82-117F2D9CDE68} = {C6E60A87-12B4-444A-BE03-7E980EAC0172} {46980D11-67FA-4B33-903F-BC9D8A4FE60F} = {70FA6EE8-62C6-437F-AD82-117F2D9CDE68} + {26B55626-4EAB-4CAE-82FE-93CD6564D9EA} = {508EF114-8C2A-470D-89FE-5AC15B336B4C} EndGlobalSection EndGlobal diff --git a/Source/Examples/OpenGL/GLSL/Lesson01/Cube.cs b/Source/Examples/OpenGL/GLSL/Lesson01/Cube.cs index a29c53d8..f751e8cb 100644 --- a/Source/Examples/OpenGL/GLSL/Lesson01/Cube.cs +++ b/Source/Examples/OpenGL/GLSL/Lesson01/Cube.cs @@ -6,6 +6,7 @@ using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; +using OpenTK; using OpenTK.OpenGL; namespace OpenTK.Examples.OpenGL.GLSL diff --git a/Source/Examples/OpenGL/GLSL/Lesson01/GLSL.Lesson01.csproj b/Source/Examples/OpenGL/GLSL/Lesson01/GLSL.Lesson01.csproj index 3d0b1e3e..c80395de 100644 --- a/Source/Examples/OpenGL/GLSL/Lesson01/GLSL.Lesson01.csproj +++ b/Source/Examples/OpenGL/GLSL/Lesson01/GLSL.Lesson01.csproj @@ -63,6 +63,10 @@ + + {26B55626-4EAB-4CAE-82FE-93CD6564D9EA} + Framework %28Projects\OpenTK\Framework\Framework%29 + {836876D1-0C8D-4240-BEE4-859D9D3D46CB} OpenTK.OpenGL diff --git a/Source/OpenGL/OpenGL/Forms/GLForm.cs b/Source/Framework/Framework.cs similarity index 96% rename from Source/OpenGL/OpenGL/Forms/GLForm.cs rename to Source/Framework/Framework.cs index b1942576..f0e54dd8 100644 --- a/Source/OpenGL/OpenGL/Forms/GLForm.cs +++ b/Source/Framework/Framework.cs @@ -1,4 +1,4 @@ -#region License +#region License /* Copyright (c) 2006 Stephen Apostolopoulos * See license.txt for license info */ @@ -13,8 +13,9 @@ using System.Threading; using OpenTK.Platform.Windows; using System.Runtime.InteropServices; using OpenTK.OpenGL.Platform; +using OpenTK.OpenGL; -namespace OpenTK.OpenGL +namespace OpenTK { public class Framework : Form, IDisposable { @@ -42,7 +43,7 @@ namespace OpenTK.OpenGL { Open(title, width, height, red, green, blue, alpha, depth, stencil, fullscreen); } - + #endregion public void Open(string title, int width, int height, int red, int green, int blue, int alpha, int depth, int stencil, bool fullscreen) diff --git a/Source/Framework/Framework.csproj b/Source/Framework/Framework.csproj new file mode 100644 index 00000000..494dca43 --- /dev/null +++ b/Source/Framework/Framework.csproj @@ -0,0 +1,65 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {26B55626-4EAB-4CAE-82FE-93CD6564D9EA} + Library + Properties + Framework + Framework + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + Form + + + + + + {836876D1-0C8D-4240-BEE4-859D9D3D46CB} + OpenTK.OpenGL + + + {FDFA00B6-FA81-4658-86E1-F312EFB42E1C} + OpenTK.Platform.Windows + + + {E3F35BD6-67CE-4AD5-AB98-043CF072A75A} + OpenTK.Platform.X + + + + + \ No newline at end of file diff --git a/Source/Framework/Properties/AssemblyInfo.cs b/Source/Framework/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..764858c5 --- /dev/null +++ b/Source/Framework/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Framework")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Framework")] +[assembly: AssemblyCopyright("Copyright © 2006")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("7652241e-158d-4eb1-85f4-ed40ee356791")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Source/OpenGL/OpenGL/OpenTK.OpenGL.csproj b/Source/OpenGL/OpenGL/OpenTK.OpenGL.csproj index 1ba64da7..c38bf6e6 100644 --- a/Source/OpenGL/OpenGL/OpenTK.OpenGL.csproj +++ b/Source/OpenGL/OpenGL/OpenTK.OpenGL.csproj @@ -48,9 +48,6 @@ - - Form -