First Steps

SGreth

Shared on Sun, 02/11/2007 - 20:15
I started doing some basic GUI work at the end of last week. After I got a cursor tracking mouse movements on-screen the next obvious step is to get some text rendered. Unfortunately in Microsoft's haste of releasing XNA they didn't supply any functionality to render text (via font or via bitmap). With my recent stint into the world GDI+ programming creating a tool that generates a bitmap-based font was pretty easy. Here is a screenie of the app -




Basically - you give it a font,  the desired resolution, and *BAM* I've got a bitmap that I can pull from to render text. In the world of 3D applications textures need to be a power of 2...well, not really with new cards...but I digress...

What's left
Now I need to export a meta-file that has the X,Y coordinate offsets for each glyph and write a quick & dirty C# API to handle all the drawing. I'd like to have that wrapped up by the end of the week so I can have some on-screen text and move on to doing the GUI plumbing.

To Open Source - or not to Open Source?
While I was doing some research (read: googling) on a new source repository application sourceforge came up more than once. That's when I started thinking...maybe I should make this entire project open source (read: free). Just a passing thought....


Image o' the day (a little HTML humor)

Comments

doodirock's picture
Submitted by doodirock on Sun, 02/11/2007 - 20:48
That picture is freaking AWESOME!
mac79's picture
Submitted by mac79 on Mon, 02/12/2007 - 06:42
am i a geek for understanding that pic?
SGreth's picture
Submitted by SGreth on Mon, 02/12/2007 - 06:57
Once upon a time I think your geek status would be without question for knowing what those tags were. The problem is that anyone who frequents a BBS would know what those tags are these days.
mac79's picture
Submitted by mac79 on Mon, 02/12/2007 - 07:47
yeah but in BBS's they are [i][/i] anyways, good one, I just had to pass it around the office!

Join our Universe

Connect with 2o2p