diff options
author | Diego Borghetti <bdiego@gmail.com> | 2009-02-17 19:56:29 +0300 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2009-02-17 19:56:29 +0300 |
commit | 16a61743e133e505bd4666ad30d1697764171ad8 (patch) | |
tree | 5ba2783ade41a70fbe23ef08c2a2c6ae3984c7d1 /source/blender/editors/space_info/space_info.c | |
parent | 9aa7e981bde5ad1b6f798ef5048cc4c373d09eb2 (diff) |
Making the things compiled!!
I change the #if 0 with #if WITH_FREETYPE2, also fix a lot of typos, etc.
This is the basic but now it draw text!!, I am using the "User Preference"
space to test the library, nobody is working on that and the option are
in the outliner now so...
TODO-next: using the 4x4 mat, string size, bounding box, aspect and rotate.
Notes: I update the Makefile, missing some include and other things so
maybe scons, cmake and msvc also need update ?
Diffstat (limited to 'source/blender/editors/space_info/space_info.c')
-rw-r--r-- | source/blender/editors/space_info/space_info.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/source/blender/editors/space_info/space_info.c b/source/blender/editors/space_info/space_info.c index 8b01080495b..141127d7eb5 100644 --- a/source/blender/editors/space_info/space_info.c +++ b/source/blender/editors/space_info/space_info.c @@ -48,6 +48,7 @@ #include "ED_screen.h" #include "BIF_gl.h" +#include "BLF_api.h" #include "WM_api.h" #include "WM_types.h" @@ -141,8 +142,29 @@ static void info_main_area_draw(const bContext *C, ARegion *ar) UI_view2d_view_ortho(C, v2d); /* data... */ + // XXX 2.50 Testing new font library - Diego + glColor3f(1.0, 0.0, 0.0); + BLF_aspect(1.0); + + BLF_size(14, 96); + BLF_position(5.0, 5.0, 0.0); + BLF_draw("Hello Blender, size 14, dpi 96"); + + glColor3f(0.0, 0.0, 1.0); + BLF_size(11, 96); + BLF_position(200.0, 50.0, 0.0); + BLF_draw("Another Hello Blender, size 11 and dpi 96!!"); + + glColor3f(0.8, 0.0, 0.7); + BLF_size(12, 72); + BLF_position(5.0, 100.0, 0.0); + BLF_draw("Hello World, size 12, dpi 72"); - + glColor3f(0.8, 0.7, 0.5); + BLF_size(12, 96); + BLF_position(5.0, 200.0, 0.0); + BLF_draw("And this make a new glyph cache!!"); + /* reset view matrix */ UI_view2d_view_restore(C); |