Rehevkor

Joined: 25 Jul 2006 Posts: 1
|
Posted: Sat Jul 29, 2006 3:48 pm Post subject: Undocumented function oslDrawTextBox in Brunni's OSLib |
|
|
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: | | 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. _________________ Halcyon|Flow |
|