Introducing GLDotNet

January 02, 2013 C#, OpenGL, .NET, Open Source

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

HTTP Status Codes as Telephone Calls

December 18, 2012 Http, Http Status Codes

I had a funny idea to describe HTTP Status Codes as telephone conversations so I thought I'd write it in a blog post.

301
She's not here right now but she'll be back later.
302
She doesn't live here anymore, she now lives somewhere else.
304
He hesn't changed a bit.
401
I can't allow you to speak to him.
402
$1.99 for the first minute...
404
No one by that name lives here.
500
It's not you, it's me.
503
I can't deal with this anymore.

Snowball is now modular

November 06, 2012 Game Programming

The version of Snowball currently on GitHub under the "develop" branch has been split into multiple projects. There is now an assembly for each major piece of Snowball, such as Graphics, Input, Sound. Although this means having to reference more assemblies, the amount of code your project depends on is now smaller. This also makes code maintenance a bit easier as it's more clear now what parts of the library depend on other parts of the library.

The parts of the library which really make up a Game Framework has also been split out into their own library. This allows for using Snowball as a just a simple set of libraries or a full blown game framework, depending on what your situation calls for.

Using Themes in Visual Studio Express for Windows Desktop

September 15, 2012 VS2012 Themes, VS2012 WD

I just want to post some information that took me while to find. Check out the original article here with pictures and more information.

1) First, download the zip file http://www.alinconstantin.net/download/VS2012Themes.zip – it contains the 7 pkgdef files defining the colors of the default themes from Matt’s extension.
  1. Now, create a folder under "%ProgramFiles%\Microsoft Visual Studio 11.0\Common7\IDE\WDExpressExtensions”, and lets name it “Themes”. Unpack the zip file in that folder.

  2. Open a ‘Developer Command Prompt for VS2012” window. In the command line, type “wdexpress.exe /updateconfiguration”. This will make Visual Studio to read the pkgdef files on next restart, and import the color themes into registry.

  3. Launch Visual Studio Express, and now you should be able to see the new themes and switch them in Tools/Options dialog, Environment/General tab

Source

ID3DXEffect::OnLostDevice()

July 20, 2012 Direct3D9, DirectX, ID3DXEffect

I fixed a bug yesterday in Snowball related to a lost graphics device. I noticed that when I would use CTRL + ALT + DELETE, my apps were crashing. Turned out it was due to not recovering properly from a lost device.

The root of the problem was that I needed to call the ID3DXEffect::OnLostDevice() method when the device was being lost. This allows the effect to recover from the lost device. I've made the Effect class in Snowball now do this automatically.