Mincus's picture

OpenTK Quickstart Template.

Not sure how useful this will be for people, but it only took a few minutes to make so thought I'd post it.

I've made a Visual Studio Template for the QuickStart solution that comes with OpenTK.
I made it in Visual Studio 2008, but it should work in 2005 since the XML schema for the vstemplate file points to the 2005 one.
The only modification I've made is to include the License.txt file as OpenTK License.txt inside the project itself.

Just put the attached zip file in My Documents\Visual Studio 2008\Templates\ProjectTemplates
When creating a new project, just select "Visual C#" and it should appear in the My Template section as shown in the picture.

It won't find OpenTK or OpenTK.Utilities straight off, you'll have to show it where those are. Not sure how to get round this.
If this is useful I'll look into creating a Startup Kit if people are interested.

Images
AttachmentSize
OpenTK QuickStart.zip11.75 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

This looks quite nice. How do you create templates like this? Is there a wizard or something like that?

This will be nice to include in the distribution, esp. if we add an installer at some point.

Edit: I guess it expects the dlls to be in the GAC, which is not possible at this point (the GAC requires a stable API).

Edit 2: What's the difference between a starter kit and a template?

Mincus's picture

Just File -> Export Template.
Follow the wizard, it's that simple.

Getting the license in there was a little harder. If I created the zip file it uses from scratch using either WinRAR or Windows' zip maker, it disappeared from Visual Studio for some reason.
However using WinRAR to add/replace files in the existing zip worked.
It just required a simple one-line addition to the .vstemplate file, which is straightforward XML.

the Fiddler's picture

File -> Export? Never once thought to see what that did.

I edited my previous post while you were posting (bad form, I know), repeating the edits here for the sake of continuity:

the Fiddler wrote:

Edit: I guess it expects the dlls to be in the GAC, which is not possible at this point (the GAC requires a stable API).

Edit 2: What's the difference between a starter kit and a template?

Mincus's picture

Doesn't look like there's that much of a different actually.
I thought there was more, but starter kits just seem to be expanded project templates with more documentation and the .zip renamed to a .vsi so it can be installed easier.

I have a suspicion the zip creation not working properly may be down to me using Windows 7's zip creation or WinRAR, but I'm not 100%, I don't have another zip program lying around to test with.

the Fiddler's picture

Your best bet is to try http://www.7-zip.org/ and see if it works with that.

Btw, what's your impression of Windows 7? Does OpenGL work correctly? Any abnormal behavior in OpenTK? (esp with the GameWindow States test in Examples.exe)

Mincus's picture

Windows 7 is basically what Vista should have been.
It's a little lighter (although not hugely so), the UI has a few extra whistles and bells on it that add functionality (for example you can change the order of applications in the task bar, sounds small but it's something I've always wanted under Windows ;o)).
It still has its problems, the UAC is around, which I thought was a good feature in Vista, with most of the problems stemming from bad security decisions in the past rather than from UAC itself. The problem with Windows 7's is that if you have one of the mid-way settings, there's potential security issues (see here for someone who's done his homework on it).
Overall it's not bad. I'm not sure how the public will respond to it at large though. It looks and feels a lot like Vista, and I have a suspicion that one of the biggest reason people didn't like Vista is that the UI had changed too much. There was a similar cry when XP was released because of its new interface.

Anyway, other than the graphics driver crashing half a dozen times or so (it's a pre-release set of nvidia drivers and I'm using the ones supplied through Windows Update right now, which aren't GL3 compatible), I've not had any graphical problems at all. Even with the drivers crashing, the OS recovers very quickly, no BSOD, just an icon in the system tray telling you what happened.
I didn't think I'd seen any problems with OpenTK, but I just ran through the examples now, and as you predicted, the GameWindow states test seems a bit off.
Moving from Fullscreen -> Normal causes the window to go as small as possible in the top-left of the screen.
First time I was running through attempting to resize it actually caused the graphics driver to crash, but I can't seem to reproduce that now.

The rest of the examples work fine, including the sound one.