floculate continued, freetype blues

September 11, 2008

So, I’m still working on the codebase for this Floculate game. Here’s what I’ve done so far:

Wrote a new video code base. It has one API in a header file, and it compiles a different C file depending on the platform you’re compiling on. This is done by having system.c include either system.linux.c or system.win32.c depending on platform defines. system.win32.c is empty right now, because I’m still working on the GNU/Linux platform. When I finish the platform specifics and rendering fundementals I’ll do the Win32 version.

Took the physics engine source dir and copied it over to the Floculate source dir, and then did a make reference to the rat_physics makefile of choice, followed by copying a temp file of librat_physics_double.a. Double is the precision of the real type it’s compiled with.

Here’s what I’m working on now… freetype font rendering in OpenGL. I want to make my own font engine so that it’s in C and only as big as it has to be. Problem is, I have no idea where to start. I know what I want to do, and how to do the second part. Basically it goes like this:

Use FreeType to render the desired glyphs to pixmap surfaces.

Create a texture and metric datum for each glyph.

Display them as textured quads given text input / special effects.

So I can create textures from pixmaps and display them as textured quads. What I DON’T know how to do is render the font. If anyone out there has some advice, please come forward. And please, don’t be all ‘hurr hurr use a redy madee font engin.’ I don’t want to. But if someone knows of a good example of using freetype to render to pixmaps, then making textures from that, great. I’ll keep posting on this until we’re all resolved.

On a random tangent: listen to Under The Weeping Moon. It’s an awesome song.

Visitor Locations

Stuff

Links

This is my site. If you click that link, this page will appear in a frame in my site! If you keep clicking, you can have a never ending layering of frames until the blagosphere asplodes, and HTML descends straight in to hell for inventing the iframe. God I hate those.

My original web-host's forum site. There is a serious lack of people there right now. If you don't talk on the forum, at least take advantage of the free hosting. As a poor person, I never would have gotten started as an indie game developer without it.

Inhuman, my very favorite webcomic! Give it a read. And please, so no one gets hurt, they are not furries, it is the future and they are aliens. I mean seriously, how thick are you people?