Archive

Archive for the ‘Uncategorized’ Category

Unit Testing in C++

December 22, 2008 Jendrik Illner Leave a comment

Back in the C++ world you really feel how good tool support makes you much more productive.
I learned to love TDD (Test Driven Development) so I wanted to continue using it in my C++ projects. So I have tried a lot of the available unit testing tools a good overview is available at Games from Within Exploring the C++ Unit Testing Framework Jungle.

But those Frameworks doesn’t feel right. Either you had to derive from a base class and/or you had manually to register the tests.
But as a long time .Net developer I’m used to add two Attributes and the test is ready to run in NUnit or MsTest.

After some time a finally found a UnitTesting framework that is like I wanted the framework to be.
It’ called WinUnit. It offered exactly what I was looking for.

  • no need to derive from a class
  • no need to manually register the test
  • no extra functionality needed to run the tests

Just compile the test project to a .dll and call the framework with the location of the .dll as parameter. Simple and it works.

Also positive is the easy way I could implement it directly into Visual Studio. How to do it is described in the WinUnit article. I use the external tool possibility because I don’t want to run the test after each build, because with a lot of tests this can take some time.
But to further improve thee process I’ve written a small macro that firstly invokes the build process so that the test project is always up to date when the test run. After the build is finished it will call WinUnit and all tests will run.

When the macro is invoked it will always build and run the actual selected project.

The Code:

Public Module BuildAndRunWinUnitTest
    Sub BuildAndRunWinUnitTest()
        DTE.Solution.SolutionBuild.Build(True)
        DTE.ExecuteCommand("Tools.ExternalCommand6")
        DTE.Windows.Item(Constants.vsWindowKindOutput).Activate()
    End Sub
End Module
Categories: Uncategorized

The SMOKE Framework finally released

November 26, 2008 Jendrik Illner 1 comment

Intel finally released the SMOKE Framework. SMOKE is a framework to support n-way threading.

For everybody not already knowing SMOKE already  have a look at the article at gamasutra here. For further insight have a look at the demo the gave at the xnagamefest you can download the recording of the presentation here. It’s really interesting and worth every bit.

They released the full source code, a demo application and documentation.
The documentation comes with fully doxygen generated class documentation. Also in the pack, the presentation of this project done at the difference conferences, just PowerPoint files no audio.

Project site:
http://software.intel.com/en-us/articles/smoke-game-technology-demo

They also released some new articles:

    Lot of interesting stuff to learn from, enough for weeks.
    I really was looking forward to this day since they first announced the SMOKE-Framework project.

    Categories: Uncategorized

    Further progress

    November 2, 2008 Jendrik Illner Leave a comment

    PDC time is hard, so much cool stuff and talks to listen. A new C#, .Net 4.0 and Visual Studio 2010 CTP to play with. This really is a lot of fun. Especially “statically typed to be dynamic”(Anders Hejlsberg) made my day. But I also made some progress on my small D3D10 Framework.
    I added a support for texture mapping, lightning and depth buffers.

    image

    Categories: D3D10, Jen3D, Uncategorized

    PDC 2008, Day 1

    October 27, 2008 Jendrik Illner Leave a comment

    But something more happened today, beside my progress on my DX10 framework, the PDC 2008 started and Microsoft unveiled a lot of new stuff I will have to check out, but most importantly they released the Visual Studio 2010 and .NET Framework 4.0 Community Technology Preview as well.

    The download weights 7353.3 MB so it takes a while to get it.
    If you are interested in the CTP you can find the download here. The CTP is only available as a Virtual PC image.

    Some more news from the PDC 2008 today:

    There’s a lot more coming and it will be a very interesting day tomorrow as more and more will be unveiled and session will be posted on Channel9.

    I’m looking forward to tomorrow when I finally get the chance to play with the CTP.

    Categories: Uncategorized

    More color and depth

    October 27, 2008 Jendrik Illner Leave a comment

    Today I made some progress.

    The Shader code is now able to get and set shader variables, I added a new camera system and made the creation and the handling of vertex buffers and index buffers a lot more streamlined and easier to use.
    You can see the result below:

    image

    Categories: Uncategorized