Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Chapter1/1-CreatingAWindow/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Creating a Window",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

// To create a new window, create a class that extends GameWindow, then call Run() on it.
Expand Down
17 changes: 17 additions & 0 deletions Chapter1/2-HelloTriangle/2-HelloTriangle.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "2-HelloTriangle", "2-HelloTriangle.csproj", "{0576DAF4-C8B6-4D5E-8702-47E31C56DF5B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0576DAF4-C8B6-4D5E-8702-47E31C56DF5B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0576DAF4-C8B6-4D5E-8702-47E31C56DF5B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0576DAF4-C8B6-4D5E-8702-47E31C56DF5B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0576DAF4-C8B6-4D5E-8702-47E31C56DF5B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
3 changes: 2 additions & 1 deletion Chapter1/2-HelloTriangle/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ private static void Main()
var nativeWindowSettings = new NativeWindowSettings()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Creating a Window",
Title = "LearnOpenTK - Hello Triangle",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter1/3-ElementBufferObjects/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Element Buffer Objects",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter1/4-Shaders-InsAndOuts/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Shaders In and Outs!",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter1/4-Shaders-MoreAttributes/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Shaders More Attributes!",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter1/4-Shaders-Uniforms/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Shaders Uniforms!",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 0 additions & 1 deletion Chapter1/5-Textures/5-Textures.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

<ItemGroup>
<PackageReference Include="OpenTK" Version="4.0.6" />
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions Chapter1/5-Textures/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Textures",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter1/6-MultipleTextures/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Multiple Textures",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter1/7-Transformations/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Transformations",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter1/8-CoordinatesSystems/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Coordinates Systems",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter1/9-Camera/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Camera",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter2/1-Colors/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Colors",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter2/2-BasicLighting/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Basic lighting",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter2/3-Materials/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Materials",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter2/4-LightingMaps/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Lighting maps",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter2/5-LightCasters-DirectionalLights/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ private static void Main()
{
Size = new OpenTK.Mathematics.Vector2i(800, 600),
Title = "LearnOpenTK - Light caster - directional",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter2/5-LightCasters-PointLights/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Light casters - point lights",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter2/5-LightCasters-Spotlight/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Light casters - spotlight",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
1 change: 1 addition & 0 deletions Chapter2/6-MultipleLights/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private static void Main()
{
Size = new Vector2i(800, 600),
Title = "LearnOpenTK - Multiple lights",
Flags = OpenTK.Windowing.Common.ContextFlags.ForwardCompatible,
};

using (var window = new Window(GameWindowSettings.Default, nativeWindowSettings))
Expand Down
Empty file modified Common/Texture.cs
100755 → 100644
Empty file.