Original Post
I want to make a simple bitmap font loader that takes in characters of uniform width. I'd figure that I would set up an array to match the correct character of a string to the x position of the bitmap, and it will begin drawing the surface at that point. Unfortunately, I don't know how to split up char variables into their individual characters and call up a bitmap letter to represent that character. I could probably figure out how to set the x and y values for the string on my own; I'll be using SDL for this. I just need help actually taking apart the strings and setting them up. Take this code for example: void drawString(SDL_Surface *screen, int x, int y, char *str, ...) Something akin to cone3D's tutorial, but without needing the RAW and INI files. Also if you can, tell me how I can display int and float variable values on the text.