diff --git a/blog/page14.html b/blog/page14.html index c21e4f6e..5d8597f9 100644 --- a/blog/page14.html +++ b/blog/page14.html @@ -1,9 +1,9 @@ -The Blog of Zachary Snow

XAudio2: Stop Currently Playing Sound

July 2, 2011.netslimdxxaudio2

Using SlimDX, if you want to stop a sound which is currently playing via XAudio2, use the following methods on the SourceVoice object:

+The Blog of Zachary Snow

Snowball: A Slightly Different Direction

July 2, 2011.netcodeplex

At first, I had imagined Snowball, now located on Codeplex, to be a framework which would define how your game objects look. I.E. I had a class called GameEntity which I imagined would handle a lot of boiler plate code for you such as setting up Initialize(), Update(), Draw(), etc.

+

I've decided to move away from that and let Snowball purely focus on the subsystems of a game, such as Graphics, Sound, Input, etc. Extending from the Game class completely sets up these aspects of your game for you. I think I will include helper components, such as a collision detection system, but I will not force you to use them.

+

XAudio2: Stop Currently Playing Sound

July 2, 2011.netslimdxxaudio2

Using SlimDX, if you want to stop a sound which is currently playing via XAudio2, use the following methods on the SourceVoice object:

sourceVoice.Stop();
 sourceVoice.FlushSourceBuffers();
 
-

Snowball: A Slightly Different Direction

July 2, 2011.netcodeplex

At first, I had imagined Snowball, now located on Codeplex, to be a framework which would define how your game objects look. I.E. I had a class called GameEntity which I imagined would handle a lot of boiler plate code for you such as setting up Initialize(), Update(), Draw(), etc.

-

I've decided to move away from that and let Snowball purely focus on the subsystems of a game, such as Graphics, Sound, Input, etc. Extending from the Game class completely sets up these aspects of your game for you. I think I will include helper components, such as a collision detection system, but I will not force you to use them.

Switching from Git to Mercurial

June 3, 2011gitmercurial

I've decided to make the switch from using git to Mercurial. Git's syntax to me is much more complicated than it needs to be and Mercurial seems to be more my style. I find it's much easier to find out how to do things with Mercurial and to be honest, I use about 10% of the functionality in either git or Mercurial.

This also means I'll be transitioning Snowball to Codeplex I think. I'll be moving it away from GitHub for sure just not 100% sure where.

Marker Interfaces

May 24, 2011design-patterns

In Snowball I was debating adding an empty interface to identify certain classes in my framework as components. I wasn't sure if this was code smell or not so I did some searching on Stackoverflow and found out this concept is actually called "Marker Interfaces". Learn something new every day.

diff --git a/blog/page15.html b/blog/page15.html index 3e6ee230..8d4242e0 100644 --- a/blog/page15.html +++ b/blog/page15.html @@ -91,7 +91,7 @@ } } -

Getting started with OpenTK

March 29, 2011.netopengl

I started experimenting with OpenTK and I had to look in a few places to put this code together, so I'm posting it here for anyone who might be looking for an easy getting started lesson.

+

OpenTK - Simple Movable Sprite

March 29, 2011.netopengl

I wrote my second OpenTK app. This time I'm drawing a sprite which you can move around the screen using the keyboard. I've included the source code after the jump or you can download it.

Read More

Getting started with OpenTK

March 29, 2011.netopengl

I started experimenting with OpenTK and I had to look in a few places to put this code together, so I'm posting it here for anyone who might be looking for an easy getting started lesson.

I've set up a window similar to what I've been used to in Xna (CornflowerBlue 4 life). I've also set up a 2D projection matrix and drawn a triangle in a 2D fashion. You'll need to add a reference to the OpenTK assembly for your project in Visual Studio.

using System;
 using System.Drawing;
@@ -144,4 +144,4 @@
     }
 }
 
-

OpenTK - Simple Movable Sprite

March 29, 2011.netopengl

I wrote my second OpenTK app. This time I'm drawing a sprite which you can move around the screen using the keyboard. I've included the source code after the jump or you can download it.

Read More
\ No newline at end of file +
\ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index a5f86e56..2742cb71 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4,289 +4,289 @@ https://smack0007.github.io/index.html - https://smack0007.github.io/blog/2009/spritesheet-class.html + https://smack0007.github.io/about.html - https://smack0007.github.io/blog/2009/drawing-2d-lines-as-rotated-quads.html + https://smack0007.github.io/blog/2019/abusing-idisposable.html - https://smack0007.github.io/blog/2009/calculating-an-angle-from-a-vector2.html + https://smack0007.github.io/blog/2019/generating-string-permutations-for-unit-testing.html - https://smack0007.github.io/blog/2009/the-game-show-host-problem-aka-the-monty-hall-problem.html + https://smack0007.github.io/blog/2019/use-nameof-to-set-string-variable-to-its-name.html - https://smack0007.github.io/blog/2014/my-experience-with-opengl-vs-direct3d.html + https://smack0007.github.io/blog/2019/dynamically-loaded-dll-thows-accessviolationexception-on-first-function-call.html - https://smack0007.github.io/blog/2014/all-the-cool-kids-are-static.html + https://smack0007.github.io/blog/2023/typing-jest-spies.html - https://smack0007.github.io/blog/2014/adding-assembly-references-in-roslyn.html + https://smack0007.github.io/blog/2023/enums-considered-harmful.html - https://smack0007.github.io/blog/2014/linq-calls-iequalitycomparer-gethashcode-before-equals.html + https://smack0007.github.io/blog/2021/use-bash-exe-to-run-scripts-in-windows.html - https://smack0007.github.io/blog/2014/code-from-when-i-was-young-and-stupid.html + https://smack0007.github.io/blog/2021/windows-terminal-fork-command.html - https://smack0007.github.io/blog/2011/favoring-composition-over-inheritance.html + https://smack0007.github.io/blog/2021/starting-redis-and-the-redis-cli-with-docker.html - https://smack0007.github.io/blog/2011/componentglue-on-github.html + https://smack0007.github.io/blog/2021/powered-by-typescript.html - https://smack0007.github.io/blog/2011/keeping-splitcontainer-splitterdistance-consistent.html + https://smack0007.github.io/blog/2021/convert-typescript-ast-to-json.html - https://smack0007.github.io/blog/2011/winquakecon.html + https://smack0007.github.io/blog/2021/practical-wasm.html - https://smack0007.github.io/blog/2011/marker-interfaces.html + https://smack0007.github.io/blog/2013/gldotnet-version-0-6-0.html - https://smack0007.github.io/blog/2011/using-git-gui-with-cygwin-on-windows-7.html + https://smack0007.github.io/blog/2013/component-glue-v1-0.html - https://smack0007.github.io/blog/2011/switching-from-git-to-mercurial.html + https://smack0007.github.io/blog/2013/introducing-gldotnet.html - https://smack0007.github.io/blog/2011/getting-started-with-opentk.html + https://smack0007.github.io/blog/2013/using-component-glue-to-build-your-object-graphs-automatically.html - https://smack0007.github.io/blog/2011/wmi-converting-datetime-values-to-datetime-objects.html + https://smack0007.github.io/blog/2008/colors-and-hex.html - https://smack0007.github.io/blog/2011/getting-started-with-slimdx.html + https://smack0007.github.io/blog/2008/zend_db_table-as-a-model.html - https://smack0007.github.io/blog/2011/snowball-and-github.html + https://smack0007.github.io/blog/2012/snowball-shaders-in-progress.html - https://smack0007.github.io/blog/2011/xaudio2-stop-currently-playing-sound.html + https://smack0007.github.io/blog/2012/using-themes-in-visual-studio-express-for-windows-desktop.html - https://smack0007.github.io/blog/2011/snowball-a-slightly-different-direction.html + https://smack0007.github.io/blog/2012/id3dxeffectonlostdevice.html - https://smack0007.github.io/blog/2011/opentk-simple-movable-sprite.html + https://smack0007.github.io/blog/2012/snowball-now-based-on-shaders.html - https://smack0007.github.io/blog/2011/what-is-snowball-and-what-do-i-want-to-do-with-it.html + https://smack0007.github.io/blog/2012/snowball-is-now-modular.html - https://smack0007.github.io/blog/2015/using-batch-files-as-task-runner-vs-code.html + https://smack0007.github.io/blog/2012/getting-started-with-snowball.html - https://smack0007.github.io/blog/2021/use-bash-exe-to-run-scripts-in-windows.html + https://smack0007.github.io/blog/2012/http-status-codes-as-telephone-calls.html - https://smack0007.github.io/blog/2021/windows-terminal-fork-command.html + https://smack0007.github.io/blog/2012/snowball-now-using-sharpdx.html - https://smack0007.github.io/blog/2021/convert-typescript-ast-to-json.html + https://smack0007.github.io/blog/2011/snowball-and-github.html - https://smack0007.github.io/blog/2021/powered-by-typescript.html + https://smack0007.github.io/blog/2011/what-is-snowball-and-what-do-i-want-to-do-with-it.html - https://smack0007.github.io/blog/2021/practical-wasm.html + https://smack0007.github.io/blog/2011/opentk-simple-movable-sprite.html - https://smack0007.github.io/blog/2021/starting-redis-and-the-redis-cli-with-docker.html + https://smack0007.github.io/blog/2011/getting-started-with-opentk.html - https://smack0007.github.io/blog/2023/enums-considered-harmful.html + https://smack0007.github.io/blog/2011/snowball-a-slightly-different-direction.html - https://smack0007.github.io/blog/2023/typing-jest-spies.html + https://smack0007.github.io/blog/2011/keeping-splitcontainer-splitterdistance-consistent.html - https://smack0007.github.io/blog/2013/component-glue-v1-0.html + https://smack0007.github.io/blog/2011/using-git-gui-with-cygwin-on-windows-7.html - https://smack0007.github.io/blog/2013/gldotnet-version-0-6-0.html + https://smack0007.github.io/blog/2011/xaudio2-stop-currently-playing-sound.html - https://smack0007.github.io/blog/2013/introducing-gldotnet.html + https://smack0007.github.io/blog/2011/wmi-converting-datetime-values-to-datetime-objects.html - https://smack0007.github.io/blog/2013/using-component-glue-to-build-your-object-graphs-automatically.html + https://smack0007.github.io/blog/2011/marker-interfaces.html - https://smack0007.github.io/blog/2024/start-syncthing-background-windows.html + https://smack0007.github.io/blog/2011/favoring-composition-over-inheritance.html - https://smack0007.github.io/blog/2018/poor-mans-template-engine-1.html + https://smack0007.github.io/blog/2011/switching-from-git-to-mercurial.html - https://smack0007.github.io/blog/2018/git-quick-push.html + https://smack0007.github.io/blog/2011/winquakecon.html - https://smack0007.github.io/blog/2018/a-neat-way-to-curry-in-csharp.html + https://smack0007.github.io/blog/2011/getting-started-with-slimdx.html - https://smack0007.github.io/blog/2018/lambda-collection-wrappers.html + https://smack0007.github.io/blog/2011/componentglue-on-github.html - https://smack0007.github.io/blog/2018/poor-mans-template-engine-3.html + https://smack0007.github.io/blog/2010/component-glue.html - https://smack0007.github.io/blog/2018/snowball-2.html + https://smack0007.github.io/blog/2010/implementing-basic-dependency-injection-using-services-container.html - https://smack0007.github.io/blog/2018/merging-build-directory-props.html + https://smack0007.github.io/blog/2010/xna-load-texture2d-from-embedded-resource.html - https://smack0007.github.io/blog/2018/string-join-extension-method.html + https://smack0007.github.io/blog/2010/winforms-and-mvc.html - https://smack0007.github.io/blog/2018/functional-card-deck-in-csharp.html + https://smack0007.github.io/blog/2010/visual-studio-move-referenced-dll-to-different-directory-after-build.html - https://smack0007.github.io/blog/2018/enabling-the-latest-version-of-csharp.html + https://smack0007.github.io/blog/2010/500-downloads-of-the-same-game.html - https://smack0007.github.io/blog/2018/run-program-directly-after-building-vscode.html + https://smack0007.github.io/blog/2010/changing-the-platformtarge-in-visual-c-express.html - https://smack0007.github.io/blog/2018/poor-mans-template-engine-2.html + https://smack0007.github.io/blog/2010/drawing-rectangles-with-spritebatch.html https://smack0007.github.io/blog/2010/csharp-extension-methods-in-your-own-library.html - - https://smack0007.github.io/blog/2010/progress-bars-in-windows-7-taskbars.html - https://smack0007.github.io/blog/2010/creating-and-consuming-services-in-your-xna-game.html - https://smack0007.github.io/blog/2010/winforms-and-mvc.html + https://smack0007.github.io/blog/2010/progress-bars-in-windows-7-taskbars.html - https://smack0007.github.io/blog/2010/component-glue.html + https://smack0007.github.io/blog/2015/using-batch-files-as-task-runner-vs-code.html - https://smack0007.github.io/blog/2010/implementing-basic-dependency-injection-using-services-container.html + https://smack0007.github.io/blog/2009/spritesheet-class.html - https://smack0007.github.io/blog/2010/drawing-rectangles-with-spritebatch.html + https://smack0007.github.io/blog/2009/calculating-an-angle-from-a-vector2.html - https://smack0007.github.io/blog/2010/500-downloads-of-the-same-game.html + https://smack0007.github.io/blog/2009/drawing-2d-lines-as-rotated-quads.html - https://smack0007.github.io/blog/2010/xna-load-texture2d-from-embedded-resource.html + https://smack0007.github.io/blog/2009/the-game-show-host-problem-aka-the-monty-hall-problem.html - https://smack0007.github.io/blog/2010/changing-the-platformtarge-in-visual-c-express.html + https://smack0007.github.io/blog/2024/start-syncthing-background-windows.html - https://smack0007.github.io/blog/2010/visual-studio-move-referenced-dll-to-different-directory-after-build.html + https://smack0007.github.io/blog/2020/filter-itemgroup-by-extension-in-msbuild.html - https://smack0007.github.io/blog/2020/predictable-random-number-generation-in-typescript.html + https://smack0007.github.io/blog/2020/github-actions.html - https://smack0007.github.io/blog/2020/disable-csharp-null-checks-for-a-field-or-property.html + https://smack0007.github.io/blog/2020/creating-a-tsexec-command.html https://smack0007.github.io/blog/2020/creating-a-asp.net-web-app-with-an-angular-frontend.html - https://smack0007.github.io/blog/2020/enum-extension-methods.html - - - https://smack0007.github.io/blog/2020/checking-for-uncommited-git-changes-in-a-batch-program.html + https://smack0007.github.io/blog/2020/use-nginx-in-docker-to-serve-static-files.html https://smack0007.github.io/blog/2020/node-script-for-syntax-highlighting.html - https://smack0007.github.io/blog/2020/nativelibraryloader-for-assembly-with-moduleinitializer.html + https://smack0007.github.io/blog/2020/execute-different-commands-in-msbuild-depending-on-platform.html - https://smack0007.github.io/blog/2020/use-nginx-in-docker-to-serve-static-files.html + https://smack0007.github.io/blog/2020/angular-in-visual-studio.html - https://smack0007.github.io/blog/2020/github-actions.html + https://smack0007.github.io/blog/2020/enum-extension-methods.html - https://smack0007.github.io/blog/2020/filter-itemgroup-by-extension-in-msbuild.html + https://smack0007.github.io/blog/2020/predictable-random-number-generation-in-typescript.html - https://smack0007.github.io/blog/2020/use-newtonsoft.json-in-.net-core-3-web-api.html + https://smack0007.github.io/blog/2020/disable-csharp-null-checks-for-a-field-or-property.html - https://smack0007.github.io/blog/2020/angular-in-visual-studio.html + https://smack0007.github.io/blog/2020/nativelibraryloader-for-assembly-with-moduleinitializer.html - https://smack0007.github.io/blog/2020/creating-a-tsexec-command.html + https://smack0007.github.io/blog/2020/checking-for-uncommited-git-changes-in-a-batch-program.html https://smack0007.github.io/blog/2020/add-the-current-time-to-your-command-prompt.html - https://smack0007.github.io/blog/2020/execute-different-commands-in-msbuild-depending-on-platform.html + https://smack0007.github.io/blog/2020/use-newtonsoft.json-in-.net-core-3-web-api.html - https://smack0007.github.io/blog/2019/dynamically-loaded-dll-thows-accessviolationexception-on-first-function-call.html + https://smack0007.github.io/blog/2018/poor-mans-template-engine-2.html - https://smack0007.github.io/blog/2019/abusing-idisposable.html + https://smack0007.github.io/blog/2018/merging-build-directory-props.html - https://smack0007.github.io/blog/2019/generating-string-permutations-for-unit-testing.html + https://smack0007.github.io/blog/2018/snowball-2.html - https://smack0007.github.io/blog/2019/use-nameof-to-set-string-variable-to-its-name.html + https://smack0007.github.io/blog/2018/git-quick-push.html - https://smack0007.github.io/blog/2008/zend_db_table-as-a-model.html + https://smack0007.github.io/blog/2018/poor-mans-template-engine-3.html - https://smack0007.github.io/blog/2008/colors-and-hex.html + https://smack0007.github.io/blog/2018/lambda-collection-wrappers.html - https://smack0007.github.io/blog/2022/iterating-thru-an-object-in-javascript.html + https://smack0007.github.io/blog/2018/run-program-directly-after-building-vscode.html - https://smack0007.github.io/blog/2022/powershell-time-command.html + https://smack0007.github.io/blog/2018/string-join-extension-method.html - https://smack0007.github.io/blog/2022/blog-now-runs-on-deno.html + https://smack0007.github.io/blog/2018/functional-card-deck-in-csharp.html - https://smack0007.github.io/blog/2022/deno-get-path-of-script.html + https://smack0007.github.io/blog/2018/enabling-the-latest-version-of-csharp.html - https://smack0007.github.io/blog/2012/getting-started-with-snowball.html + https://smack0007.github.io/blog/2018/a-neat-way-to-curry-in-csharp.html - https://smack0007.github.io/blog/2012/using-themes-in-visual-studio-express-for-windows-desktop.html + https://smack0007.github.io/blog/2018/poor-mans-template-engine-1.html - https://smack0007.github.io/blog/2012/snowball-is-now-modular.html + https://smack0007.github.io/blog/2022/deno-get-path-of-script.html - https://smack0007.github.io/blog/2012/snowball-now-based-on-shaders.html + https://smack0007.github.io/blog/2022/blog-now-runs-on-deno.html - https://smack0007.github.io/blog/2012/snowball-shaders-in-progress.html + https://smack0007.github.io/blog/2022/iterating-thru-an-object-in-javascript.html - https://smack0007.github.io/blog/2012/id3dxeffectonlostdevice.html + https://smack0007.github.io/blog/2022/powershell-time-command.html - https://smack0007.github.io/blog/2012/snowball-now-using-sharpdx.html + https://smack0007.github.io/blog/2014/code-from-when-i-was-young-and-stupid.html - https://smack0007.github.io/blog/2012/http-status-codes-as-telephone-calls.html + https://smack0007.github.io/blog/2014/linq-calls-iequalitycomparer-gethashcode-before-equals.html - https://smack0007.github.io/about.html + https://smack0007.github.io/blog/2014/adding-assembly-references-in-roslyn.html + + + https://smack0007.github.io/blog/2014/my-experience-with-opengl-vs-direct3d.html + + + https://smack0007.github.io/blog/2014/all-the-cool-kids-are-static.html diff --git a/tags/net/page6.html b/tags/net/page6.html index 8cf17703..ac053b22 100644 --- a/tags/net/page6.html +++ b/tags/net/page6.html @@ -13,11 +13,11 @@

WMI - Converting datetime values to DateTime objects

July 12, 2011.netwmi

Just a quick post to hopefully save anyone who finds this some time. If you need to convert a datetime value from a WMI query to a native DateTime object in C#, you can use the method ToDateTime() on the ManagementDateTimeConverter class.

ManagementDateTimeConverter.ToDateTime(dmtfDate);
 
+

Snowball: A Slightly Different Direction

July 2, 2011.netcodeplex

At first, I had imagined Snowball, now located on Codeplex, to be a framework which would define how your game objects look. I.E. I had a class called GameEntity which I imagined would handle a lot of boiler plate code for you such as setting up Initialize(), Update(), Draw(), etc.

+

I've decided to move away from that and let Snowball purely focus on the subsystems of a game, such as Graphics, Sound, Input, etc. Extending from the Game class completely sets up these aspects of your game for you. I think I will include helper components, such as a collision detection system, but I will not force you to use them.

XAudio2: Stop Currently Playing Sound

July 2, 2011.netslimdxxaudio2

Using SlimDX, if you want to stop a sound which is currently playing via XAudio2, use the following methods on the SourceVoice object:

sourceVoice.Stop();
 sourceVoice.FlushSourceBuffers();
 
-

Snowball: A Slightly Different Direction

July 2, 2011.netcodeplex

At first, I had imagined Snowball, now located on Codeplex, to be a framework which would define how your game objects look. I.E. I had a class called GameEntity which I imagined would handle a lot of boiler plate code for you such as setting up Initialize(), Update(), Draw(), etc.

-

I've decided to move away from that and let Snowball purely focus on the subsystems of a game, such as Graphics, Sound, Input, etc. Extending from the Game class completely sets up these aspects of your game for you. I think I will include helper components, such as a collision detection system, but I will not force you to use them.

ComponentGlue on GitHub

I moved the ComponentGlue repository to GitHub. I updated the example slightly and cleaned up some of the source code a little. Need to build a full blown app with it eventually.

\ No newline at end of file diff --git a/tags/net/page7.html b/tags/net/page7.html index 70a8d420..fb11c063 100644 --- a/tags/net/page7.html +++ b/tags/net/page7.html @@ -72,7 +72,7 @@ } } -

Getting started with OpenTK

March 29, 2011.netopengl

I started experimenting with OpenTK and I had to look in a few places to put this code together, so I'm posting it here for anyone who might be looking for an easy getting started lesson.

+

OpenTK - Simple Movable Sprite

March 29, 2011.netopengl

I wrote my second OpenTK app. This time I'm drawing a sprite which you can move around the screen using the keyboard. I've included the source code after the jump or you can download it.

Read More

Getting started with OpenTK

March 29, 2011.netopengl

I started experimenting with OpenTK and I had to look in a few places to put this code together, so I'm posting it here for anyone who might be looking for an easy getting started lesson.

I've set up a window similar to what I've been used to in Xna (CornflowerBlue 4 life). I've also set up a 2D projection matrix and drawn a triangle in a 2D fashion. You'll need to add a reference to the OpenTK assembly for your project in Visual Studio.

using System;
 using System.Drawing;
@@ -125,7 +125,7 @@
     }
 }
 
-

OpenTK - Simple Movable Sprite

March 29, 2011.netopengl

I wrote my second OpenTK app. This time I'm drawing a sprite which you can move around the screen using the keyboard. I've included the source code after the jump or you can download it.

Read More

Keeping SplitContainer SplitterDistance consistent

February 9, 2011.netwinforms

If you're having trouble keeping the SplitterDistance property of a SplitContainer consistent across app sessions, you can set the FixedPanel property of the splitter to FixedPanel.Panel1.

+

Keeping SplitContainer SplitterDistance consistent

February 9, 2011.netwinforms

If you're having trouble keeping the SplitterDistance property of a SplitContainer consistent across app sessions, you can set the FixedPanel property of the splitter to FixedPanel.Panel1.

splitter.FixedPanel = FixedPanel.Panel1;
 

I guess this could also work with FixedPanel.Panel2 as well but I haven't given it a try. Credit this stackoverflow post.

diff --git a/tags/opengl/index.html b/tags/opengl/index.html index 1f7f684b..747ce9b1 100644 --- a/tags/opengl/index.html +++ b/tags/opengl/index.html @@ -11,7 +11,7 @@

Changelog:

Introducing GLDotNet

Today I released a project I've been playing around with for a year or so on Codeplex. It's called GLDotNet. From the project description:

C# wrapper for OpenGL. Partially generated from the OpenGL spec and partially written by hand, the aim is to have a flexible and native feeling C# binding.

I have generated functions from the OpenGL spec excluding 1 or 2 but unfortunately of the generated code is untested. There is a demo project included in the source code. The Github repository is located here: https://github.com/smack0007/GLDotNet

-

Getting started with OpenTK

March 29, 2011.netopengl

I started experimenting with OpenTK and I had to look in a few places to put this code together, so I'm posting it here for anyone who might be looking for an easy getting started lesson.

+

OpenTK - Simple Movable Sprite

March 29, 2011.netopengl

I wrote my second OpenTK app. This time I'm drawing a sprite which you can move around the screen using the keyboard. I've included the source code after the jump or you can download it.

Read More

Getting started with OpenTK

March 29, 2011.netopengl

I started experimenting with OpenTK and I had to look in a few places to put this code together, so I'm posting it here for anyone who might be looking for an easy getting started lesson.

I've set up a window similar to what I've been used to in Xna (CornflowerBlue 4 life). I've also set up a 2D projection matrix and drawn a triangle in a 2D fashion. You'll need to add a reference to the OpenTK assembly for your project in Visual Studio.

using System;
 using System.Drawing;
@@ -64,4 +64,4 @@ 

Changelog:

} }
-

OpenTK - Simple Movable Sprite

March 29, 2011.netopengl

I wrote my second OpenTK app. This time I'm drawing a sprite which you can move around the screen using the keyboard. I've included the source code after the jump or you can download it.

Read More
\ No newline at end of file +
\ No newline at end of file