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:
authorCampbell Barton <ideasman42@gmail.com>2015-04-08 03:10:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-04-08 03:38:19 +0300
commit8c539b0ab521d442d88c70243c04cbb9e40fe412 (patch)
tree58b1ffb19b1117404698a6705a87406722400b01 /source/blender/imbuf/IMB_thumbs.h
parentc56c493cf403b63ec46b90023cdc8137275a310f (diff)
Font preview for file browser
D1002 by @plasmasolutions, with own refactoring. Note, needed to do a bad-level call here (IMB -> BLF) Also can't use the BLF API directly because its not thread-safe. So keep the function isolated (blf_thumbs.c).
Diffstat (limited to 'source/blender/imbuf/IMB_thumbs.h')
-rw-r--r--source/blender/imbuf/IMB_thumbs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/imbuf/IMB_thumbs.h b/source/blender/imbuf/IMB_thumbs.h
index bea531c1442..404052f2e8e 100644
--- a/source/blender/imbuf/IMB_thumbs.h
+++ b/source/blender/imbuf/IMB_thumbs.h
@@ -54,7 +54,8 @@ typedef enum ThumbSize {
typedef enum ThumbSource {
THB_SOURCE_IMAGE,
THB_SOURCE_MOVIE,
- THB_SOURCE_BLEND
+ THB_SOURCE_BLEND,
+ THB_SOURCE_FONT,
} ThumbSource;
/* don't generate thumbs for images bigger then this (100mb) */
@@ -79,6 +80,11 @@ void IMB_thumb_makedirs(void);
ImBuf *IMB_thumb_load_blend(const char *path);
void IMB_thumb_overlay_blend(unsigned int *thumb, int width, int height, float aspect);
+/* special function for previewing fonts */
+ImBuf *IMB_thumb_load_font(
+ const char *filename,
+ unsigned int x, unsigned int y);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */