Font commands
BlitzMax Forums/BlitzMax Beginners Area/Font commands
| ||
Dammit, I wish the search function was working on this forum. Dammit, I wish there was a BlitzMax manual as well the Blitz3D and BlitzPlus Manuals. Dammit, I'm sure I must be wrong. But, dammit, I cannot find the font commands like LoadFont, SetFont or anything to do with fonts. The nearest I can get are four .bmx files in the mod directory which look real scary to me and don't help a bit. My impression is that BlitzMax isn't quite ready. The "import bb" facility does not know that Text should be DrawText or that DrawText x,y, "blah" should be DrawText "blah", x,y Nor, for that matter, does it understand that Color should change to SetColor or that Rect should be DrawRect and Oval must become DrawOval Also, the filled/unfilled (1/0) option has been dropped from DrawRect and DrawOval :-( I love the rotate command, though :-) But I still need the fonts, please? |
| ||
Have a look in the Max2D module there you will find: LoadImageFont - MAX equiv of LoadFont SetImageFont - MAX equiv of SetFont You can draw an unfilled rect or oval by using, SetGraphicsDriver GLMax2DDriver() Graphics 1024,768 glpolygonmode(GL_BACK,GL_LINE) DrawRect 128,128,256,256 ' or oval |
| ||
I agree about finding the commands. Even the B2D and B3D command reference split into areas is better than split into modules. A windows help style search would be good. It makes it very difficult and, when you find the command, there are sometimes no examples and little explanation. <edit> but I am enjoying it :) |
| ||
Thank you, Stuart Morgan, for taking an interest. The DrawRect example are very helpful. |