Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2009-04-24 01:57:41 +0400
committerDiego Borghetti <bdiego@gmail.com>2009-04-24 01:57:41 +0400
commitefd1a69d6c12d97594c93857365547a56e6792e9 (patch)
treebf509b370b103c2b6db14a318f79dcf361030da5 /source/blender/blenfont/intern/blf_internal.h
parent1b95d684afd7153a16ebb6d9af16b60b56fc1159 (diff)
Move texture draw to blf_util.c, now both font used it.
A little cleanup on the internal font, it's possible load the old bmfont with: BLF_load_mem(name, NULL, 0) where name can be: helv, helvb or scr. Note that the internal font also support both draw, texture and bitmap, by default always used texture. Remove some old lang function that I left there and don't exist any more because the locale are now in the RNA. Small changes to Style's, so if we build without freetype2 by default go back to the internal font, this is a little ugly (and have the old problem of scale) but now blender always show text (need work a little more there).
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal.h')
-rw-r--r--source/blender/blenfont/intern/blf_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h
index 87d5938db9c..a042eefb4d9 100644
--- a/source/blender/blenfont/intern/blf_internal.h
+++ b/source/blender/blenfont/intern/blf_internal.h
@@ -32,6 +32,10 @@ unsigned int blf_next_p2(unsigned int x);
unsigned int blf_hash(unsigned int val);
int blf_utf8_next(unsigned char *buf, int *iindex);
+void blf_texture_draw(float uv[2][2], float dx, float y1, float dx1, float y2);
+void blf_texture5_draw(float uv[2][2], float x1, float y1, float x2, float y2);
+void blf_texture3_draw(float uv[2][2], float x1, float y1, float x2, float y2);
+
char *blf_dir_search(const char *file);
int blf_dir_split(const char *str, char *file, int *size);