Accueil > Framework > ArcEngine 0.3 is out

ArcEngine 0.3 is out

The new release of the framework is out. Among news you can notice GamePad support, Shaders support, TTF fonts… There are several projects on the SVN showing how to use the differents modules. Refer to the changelog for more informations.

Tags:
  1. Imp
    18/05/2010 à 01:05 | #1

    Hey there, I was wonderen how you have succeeded integrating TAO.FreeType in your Engine. I’m trying to do this aswell with litle to no success due to the C# IntPtr stuff. Is there a useful tutorial how to actually integrate Freetype into your C# application?

  2. 18/05/2010 à 08:01 | #2

    Short answer : have a look at the SVN source for BitmapFont.

    Rapid response : I don’t use anymore Tao (obsolet and out dated), I use OpenTK which has better a support and community. To convert a ttf file to an OpenGL texture here’s how I do (at line 654) :

    Create a System.Drawing.Bitmap (32b ARGB)
    Create a System.Drawing.Graphics from the previous Bitmap
    Render each glyph in the Bitmap.
    Save the Bitmap in a MemoryStream (avoid creating a file on disk)
    Create an OpenGL texture from this MemoryStream

    You are done with the visual part (creating the texture).

    Hope it’s clear. If you have question feel free to ask for details.

  1. Pas encore de trackbacks