Undocumented function oslDrawTextBox in Brunni's OSLib

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Rehevkor
Posts: 1
Joined: Tue Jul 25, 2006 10:43 am
Contact:

Undocumented function oslDrawTextBox in Brunni's OSLib

Post by Rehevkor »

I've been working on a game using Brunni's "Old School Library". I found a function prototype in text.h called oslDrawTextBox that isn't mentioned anywhere in the documentation. Here is the prototype from text.h:

Code: Select all

extern void oslDrawTextBox(int x0, int y0, int x1, int y1, const char *text, int format);
I was able to figure all of it out except for int format. I can position the text box and display text, but the text is tiny and has a forced black background on the characters (see screenshot). I've tried compiling with int format set to 0, 1, and 2, and with no noticable change for each.

I tried to contact Brunni via PM about this four days ago and have yet to receive a reply. Can anyone else tell me exactly how this parameter works, and how I might use it to improve the look of my text? Thanks.

By the way, pay no attention to Snake in that screenshot; this isn't a Metal Gear related game :). He's just there to test the portrait code.

Edit: Ok, I figured out how to convert and use my own fonts and correct the background color problem, but I'm still curious about this int format parameter.
Post Reply