diff options
| author | Manolo Gouy <Manolo> | 2010-04-13 14:26:12 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-04-13 14:26:12 +0000 |
| commit | 241b2c746ec34a11e05a8036f216f13131abb025 (patch) | |
| tree | 1a1b26ba2aefec93ca95db8a2c58c4f6fec560af /FL | |
| parent | a9f8b7001952629fe4bb18de6ea96b1d10d79faf (diff) | |
gl_draw.cxx (Mac-specific): implemented a fifo pile of pre-computed textures for faster GL text rendering.
Also added new function gl_texture_pile_height(int) that sets the height of this pile.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/gl.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -98,6 +98,10 @@ FL_EXPORT void gl_draw(const char*, int n, int x, int y); FL_EXPORT void gl_draw(const char*, int n, float x, float y); FL_EXPORT void gl_draw(const char*, int x, int y, int w, int h, Fl_Align); FL_EXPORT void gl_measure(const char*, int& x, int& y); +#ifdef __APPLE__ +extern FL_EXPORT void gl_texture_pile_height(int max); +extern FL_EXPORT int gl_texture_pile_height(); +#endif FL_EXPORT void gl_draw_image(const uchar *, int x,int y,int w,int h, int d=3, int ld=0); |
