Blender  V2.93
BLF_api.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2009 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #include "BLI_compiler_attrs.h"
27 #include "BLI_sys_types.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /* enable this only if needed (unused circa 2016) */
34 #define BLF_BLUR_ENABLE 0
35 
36 struct ColorManagedDisplay;
37 struct ResultBLF;
38 struct rctf;
39 struct rcti;
40 
41 int BLF_init(void);
42 void BLF_exit(void);
43 
44 void BLF_cache_clear(void);
45 
46 /* Loads a font, or returns an already loaded font and increments its reference count. */
47 int BLF_load(const char *name) ATTR_NONNULL();
48 int BLF_load_mem(const char *name, const unsigned char *mem, int mem_size) ATTR_NONNULL();
49 
50 int BLF_load_unique(const char *name) ATTR_NONNULL();
51 int BLF_load_mem_unique(const char *name, const unsigned char *mem, int mem_size) ATTR_NONNULL();
52 
53 void BLF_unload(const char *name) ATTR_NONNULL();
54 void BLF_unload_id(int fontid);
55 
56 /* Check if font supports a particular glyph. */
57 bool BLF_has_glyph(int fontid, unsigned int unicode);
58 
59 /* Attach a file with metrics information from memory. */
60 void BLF_metrics_attach(int fontid, unsigned char *mem, int mem_size);
61 
62 void BLF_aspect(int fontid, float x, float y, float z);
63 void BLF_position(int fontid, float x, float y, float z);
64 void BLF_size(int fontid, int size, int dpi);
65 
66 /* goal: small but useful color API */
67 void BLF_color4ubv(int fontid, const unsigned char rgba[4]);
68 void BLF_color3ubv(int fontid, const unsigned char rgb[3]);
69 void BLF_color3ubv_alpha(int fontid, const unsigned char rgb[3], unsigned char alpha);
70 void BLF_color4ub(
71  int fontid, unsigned char r, unsigned char g, unsigned char b, unsigned char alpha);
72 void BLF_color3ub(int fontid, unsigned char r, unsigned char g, unsigned char b);
73 void BLF_color4f(int fontid, float r, float g, float b, float a);
74 void BLF_color4fv(int fontid, const float rgba[4]);
75 void BLF_color3f(int fontid, float r, float g, float b);
76 void BLF_color3fv_alpha(int fontid, const float rgb[3], float alpha);
77 /* Also available: `UI_FontThemeColor(fontid, colorid)`. */
78 
79 /* Set a 4x4 matrix to be multiplied before draw the text.
80  * Remember that you need call BLF_enable(BLF_MATRIX)
81  * to enable this.
82  *
83  * The order of the matrix is like GL:
84  *
85  * | m[0] m[4] m[8] m[12] |
86  * | m[1] m[5] m[9] m[13] |
87  * | m[2] m[6] m[10] m[14] |
88  * | m[3] m[7] m[11] m[15] |
89  */
90 void BLF_matrix(int fontid, const float m[16]);
91 
92 /* Batch draw-calls together as long as
93  * the model-view matrix and the font remain unchanged. */
94 void BLF_batch_draw_begin(void);
95 void BLF_batch_draw_flush(void);
96 void BLF_batch_draw_end(void);
97 
98 /* Draw the string using the current font. */
99 void BLF_draw_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info)
100  ATTR_NONNULL(2);
101 void BLF_draw(int fontid, const char *str, size_t len) ATTR_NONNULL(2);
102 void BLF_draw_ascii_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info)
103  ATTR_NONNULL(2);
104 void BLF_draw_ascii(int fontid, const char *str, size_t len) ATTR_NONNULL(2);
105 int BLF_draw_mono(int fontid, const char *str, size_t len, int cwidth) ATTR_NONNULL(2);
106 
107 typedef bool (*BLF_GlyphBoundsFn)(const char *str,
108  const size_t str_step_ofs,
109  const struct rcti *glyph_step_bounds,
110  const int glyph_advance_x,
111  const struct rctf *glyph_bounds,
112  const int glyph_bearing[2],
113  void *user_data);
114 
115 void BLF_boundbox_foreach_glyph_ex(int fontid,
116  const char *str,
117  size_t len,
118  BLF_GlyphBoundsFn user_fn,
119  void *user_data,
120  struct ResultBLF *r_info) ATTR_NONNULL(2);
121 void BLF_boundbox_foreach_glyph(int fontid,
122  const char *str,
123  size_t len,
124  BLF_GlyphBoundsFn user_fn,
125  void *user_data) ATTR_NONNULL(2);
126 
127 /* Get the string byte offset that fits within a given width */
128 size_t BLF_width_to_strlen(int fontid, const char *str, size_t len, float width, float *r_width)
129  ATTR_NONNULL(2);
130 /* Same as BLF_width_to_strlen but search from the string end */
131 size_t BLF_width_to_rstrlen(int fontid, const char *str, size_t len, float width, float *r_width)
132  ATTR_NONNULL(2);
133 
134 /* This function return the bounding box of the string
135  * and are not multiplied by the aspect.
136  */
137 void BLF_boundbox_ex(int fontid,
138  const char *str,
139  size_t len,
140  struct rctf *box,
141  struct ResultBLF *r_info) ATTR_NONNULL(2);
142 void BLF_boundbox(int fontid, const char *str, size_t len, struct rctf *box) ATTR_NONNULL();
143 
144 /* The next both function return the width and height
145  * of the string, using the current font and both value
146  * are multiplied by the aspect of the font.
147  */
148 float BLF_width_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info)
150 float BLF_width(int fontid, const char *str, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
151 float BLF_height_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info)
153 float BLF_height(int fontid, const char *str, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
154 
155 /* Return dimensions of the font without any sample text. */
157 float BLF_width_max(int fontid) ATTR_WARN_UNUSED_RESULT;
158 float BLF_descender(int fontid) ATTR_WARN_UNUSED_RESULT;
159 float BLF_ascender(int fontid) ATTR_WARN_UNUSED_RESULT;
160 
161 /* The following function return the width and height of the string, but
162  * just in one call, so avoid extra freetype2 stuff.
163  */
164 void BLF_width_and_height(int fontid, const char *str, size_t len, float *r_width, float *r_height)
165  ATTR_NONNULL();
166 
167 /* For fixed width fonts only, returns the width of a
168  * character.
169  */
170 float BLF_fixed_width(int fontid) ATTR_WARN_UNUSED_RESULT;
171 
172 /* By default, rotation and clipping are disable and
173  * have to be enable/disable using BLF_enable/disable.
174  */
175 void BLF_rotation(int fontid, float angle);
176 void BLF_clipping(int fontid, float xmin, float ymin, float xmax, float ymax);
177 void BLF_wordwrap(int fontid, int wrap_width);
178 
179 #if BLF_BLUR_ENABLE
180 void BLF_blur(int fontid, int size);
181 #endif
182 
183 void BLF_enable(int fontid, int option);
184 void BLF_disable(int fontid, int option);
185 
186 /* Shadow options, level is the blur level, can be 3, 5 or 0 and
187  * the other argument are the rgba color.
188  * Take care that shadow need to be enable using BLF_enable!!!
189  */
190 void BLF_shadow(int fontid, int level, const float rgba[4]) ATTR_NONNULL(3);
191 
192 /* Set the offset for shadow text, this is the current cursor
193  * position plus this offset, don't need call BLF_position before
194  * this function, the current position is calculate only on
195  * BLF_draw, so it's safe call this whenever you like.
196  */
197 void BLF_shadow_offset(int fontid, int x, int y);
198 
199 /* Set the buffer, size and number of channels to draw, one thing to take care is call
200  * this function with NULL pointer when we finish, for example:
201  *
202  * BLF_buffer(my_fbuf, my_cbuf, 100, 100, 4, true, NULL);
203  *
204  * ... set color, position and draw ...
205  *
206  * BLF_buffer(NULL, NULL, NULL, 0, 0, false, NULL);
207  */
208 void BLF_buffer(int fontid,
209  float *fbuf,
210  unsigned char *cbuf,
211  int w,
212  int h,
213  int nch,
214  struct ColorManagedDisplay *display);
215 
216 /* Set the color to be used for text. */
217 void BLF_buffer_col(int fontid, const float rgba[4]) ATTR_NONNULL(2);
218 
219 /* Draw the string into the buffer, this function draw in both buffer,
220  * float and unsigned char _BUT_ it's not necessary set both buffer, NULL is valid here.
221  */
222 void BLF_draw_buffer_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info)
223  ATTR_NONNULL(2);
224 void BLF_draw_buffer(int fontid, const char *str, size_t len) ATTR_NONNULL(2);
225 
226 /* Add a path to the font dir paths. */
227 void BLF_dir_add(const char *path) ATTR_NONNULL();
228 
229 /* Remove a path from the font dir paths. */
230 void BLF_dir_rem(const char *path) ATTR_NONNULL();
231 
232 /* Return an array with all the font dir (this can be used for filesel) */
234 
235 /* Free the data return by BLF_dir_get. */
236 void BLF_dir_free(char **dirs, int count) ATTR_NONNULL();
237 
238 /* blf_thumbs.c */
239 void BLF_thumb_preview(const char *filename,
240  const char **draw_str,
241  const char **i18n_draw_str,
242  const unsigned char draw_str_lines,
243  const float font_color[4],
244  const int font_size,
245  unsigned char *buf,
246  int w,
247  int h,
248  int channels) ATTR_NONNULL();
249 
250 /* blf_default.c */
251 void BLF_default_dpi(int dpi);
252 void BLF_default_set(int fontid);
253 int BLF_default(void); /* get default font ID so we can pass it to other functions */
254 /* Draw the string using the default font, size and dpi. */
255 void BLF_draw_default(float x, float y, float z, const char *str, size_t len) ATTR_NONNULL();
256 void BLF_draw_default_ascii(float x, float y, float z, const char *str, size_t len) ATTR_NONNULL();
257 /* Set size and DPI, and return default font ID. */
258 int BLF_set_default(void);
259 
260 /* blf_font_default.c */
261 int BLF_load_default(const bool unique);
262 int BLF_load_mono_default(const bool unique);
263 
264 #ifdef DEBUG
265 void BLF_state_print(int fontid);
266 #endif
267 
268 /* font->flags. */
269 #define BLF_ROTATION (1 << 0)
270 #define BLF_CLIPPING (1 << 1)
271 #define BLF_SHADOW (1 << 2)
272 #define BLF_KERNING_DEFAULT (1 << 3)
273 #define BLF_MATRIX (1 << 4)
274 #define BLF_ASPECT (1 << 5)
275 #define BLF_WORD_WRAP (1 << 6)
276 #define BLF_MONOCHROME (1 << 7) /* no-AA */
277 #define BLF_HINTING_NONE (1 << 8)
278 #define BLF_HINTING_SLIGHT (1 << 9)
279 #define BLF_HINTING_FULL (1 << 10)
280 #define BLF_BOLD (1 << 11)
281 #define BLF_ITALIC (1 << 12)
282 
283 #define BLF_DRAW_STR_DUMMY_MAX 1024
284 
285 /* XXX, bad design */
286 extern int blf_mono_font;
287 extern int blf_mono_font_render; /* don't mess drawing with render threads. */
288 
292 struct ResultBLF {
296  int lines;
300  int width;
301 };
302 
303 #ifdef __cplusplus
304 }
305 #endif
void BLF_default_set(int fontid)
Definition: blf_default.c:48
void BLF_draw_default(float x, float y, float z, const char *str, size_t len) ATTR_NONNULL()
Definition: blf_default.c:71
int BLF_load_mem(const char *name, const unsigned char *mem, int mem_size) ATTR_NONNULL()
Definition: blf.c:205
float BLF_width_max(int fontid) ATTR_WARN_UNUSED_RESULT
Definition: blf.c:768
int BLF_load_mem_unique(const char *name, const unsigned char *mem, int mem_size) ATTR_NONNULL()
Definition: blf.c:215
void BLF_draw_buffer(int fontid, const char *str, size_t len) ATTR_NONNULL(2)
Definition: blf.c:913
void BLF_aspect(int fontid, float x, float y, float z)
Definition: blf.c:292
void BLF_color3ubv(int fontid, const unsigned char rgb[3])
Definition: blf.c:411
int BLF_init(void)
Definition: blf.c:81
void BLF_cache_clear(void)
Definition: blf.c:105
void BLF_draw_ascii_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info) ATTR_NONNULL(2)
Definition: blf.c:554
float BLF_height_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
Definition: blf.c:739
float BLF_width(int fontid, const char *str, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: blf.c:723
int BLF_default(void)
Definition: blf_default.c:55
void BLF_color3f(int fontid, float r, float g, float b)
Definition: blf.c:464
void BLF_draw_buffer_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info) ATTR_NONNULL(2)
Definition: blf.c:898
void BLF_default_dpi(int dpi)
Definition: blf_default.c:43
void BLF_color3fv_alpha(int fontid, const float rgb[3], float alpha)
Definition: blf.c:456
void BLF_color4fv(int fontid, const float rgba[4])
Definition: blf.c:441
bool BLF_has_glyph(int fontid, unsigned int unicode)
Definition: blf.c:144
char ** BLF_dir_get(int *ndir) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: blf_dir.c:95
void BLF_draw_ascii(int fontid, const char *str, size_t len) ATTR_NONNULL(2)
Definition: blf.c:573
void BLF_shadow_offset(int fontid, int x, int y)
Definition: blf.c:841
void BLF_width_and_height(int fontid, const char *str, size_t len, float *r_width, float *r_height) ATTR_NONNULL()
Definition: blf.c:698
int blf_mono_font_render
Definition: blf.c:71
void BLF_shadow(int fontid, int level, const float rgba[4]) ATTR_NONNULL(3)
Definition: blf.c:831
void BLF_matrix(int fontid, const float m[16])
Definition: blf.c:303
float BLF_fixed_width(int fontid) ATTR_WARN_UNUSED_RESULT
Definition: blf.c:728
int BLF_draw_mono(int fontid, const char *str, size_t len, int cwidth) ATTR_NONNULL(2)
Definition: blf.c:582
void BLF_batch_draw_flush(void)
Definition: blf.c:476
void BLF_draw(int fontid, const char *str, size_t len) ATTR_NONNULL(2)
Definition: blf.c:542
size_t BLF_width_to_strlen(int fontid, const char *str, size_t len, float width, float *r_width) ATTR_NONNULL(2)
Definition: blf.c:636
void BLF_disable(int fontid, int option)
Definition: blf.c:283
void BLF_rotation(int fontid, float angle)
Definition: blf.c:801
void BLF_thumb_preview(const char *filename, const char **draw_str, const char **i18n_draw_str, const unsigned char draw_str_lines, const float font_color[4], const int font_size, unsigned char *buf, int w, int h, int channels) ATTR_NONNULL()
Definition: blf_thumbs.c:51
void BLF_buffer_col(int fontid, const float rgba[4]) ATTR_NONNULL(2)
Definition: blf.c:871
float BLF_height(int fontid, const char *str, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: blf.c:752
float BLF_descender(int fontid) ATTR_WARN_UNUSED_RESULT
Definition: blf.c:779
int BLF_load_unique(const char *name) ATTR_NONNULL()
Definition: blf.c:166
void BLF_color3ubv_alpha(int fontid, const unsigned char rgb[3], unsigned char alpha)
Definition: blf.c:399
void BLF_draw_default_ascii(float x, float y, float z, const char *str, size_t len) ATTR_NONNULL()
Definition: blf_default.c:82
void BLF_boundbox_foreach_glyph(int fontid, const char *str, size_t len, BLF_GlyphBoundsFn user_fn, void *user_data) ATTR_NONNULL(2)
Definition: blf.c:630
void BLF_unload_id(int fontid)
Definition: blf.c:260
bool(* BLF_GlyphBoundsFn)(const char *str, const size_t str_step_ofs, const struct rcti *glyph_step_bounds, const int glyph_advance_x, const struct rctf *glyph_bounds, const int glyph_bearing[2], void *user_data)
Definition: BLF_api.h:107
float BLF_ascender(int fontid) ATTR_WARN_UNUSED_RESULT
Definition: blf.c:790
void BLF_unload(const char *name) ATTR_NONNULL()
Definition: blf.c:243
void BLF_dir_free(char **dirs, int count) ATTR_NONNULL()
Definition: blf_dir.c:119
int blf_mono_font
Definition: blf.c:70
void BLF_draw_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info) ATTR_NONNULL(2)
Definition: blf.c:525
void BLF_buffer(int fontid, float *fbuf, unsigned char *cbuf, int w, int h, int nch, struct ColorManagedDisplay *display)
Definition: blf.c:851
int BLF_load_mono_default(const bool unique)
float BLF_width_ex(int fontid, const char *str, size_t len, struct ResultBLF *r_info) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
Definition: blf.c:710
void BLF_boundbox_ex(int fontid, const char *str, size_t len, struct rctf *box, struct ResultBLF *r_info) ATTR_NONNULL(2)
Definition: blf.c:676
void BLF_exit(void)
Definition: blf.c:92
void BLF_batch_draw_begin(void)
Definition: blf.c:470
void BLF_size(int fontid, int size, int dpi)
Definition: blf.c:367
void BLF_enable(int fontid, int option)
Definition: blf.c:274
size_t BLF_width_to_rstrlen(int fontid, const char *str, size_t len, float width, float *r_width) ATTR_NONNULL(2)
Definition: blf.c:656
void BLF_color3ub(int fontid, unsigned char r, unsigned char g, unsigned char b)
Definition: blf.c:429
int BLF_load(const char *name) ATTR_NONNULL()
Definition: blf.c:153
int BLF_height_max(int fontid) ATTR_WARN_UNUSED_RESULT
Definition: blf.c:757
int BLF_load_default(const bool unique)
void BLF_batch_draw_end(void)
Definition: blf.c:483
void BLF_boundbox_foreach_glyph_ex(int fontid, const char *str, size_t len, BLF_GlyphBoundsFn user_fn, void *user_data, struct ResultBLF *r_info) ATTR_NONNULL(2)
Definition: blf.c:608
void BLF_color4f(int fontid, float r, float g, float b, float a)
Definition: blf.c:450
void BLF_color4ubv(int fontid, const unsigned char rgba[4])
Definition: blf.c:387
void BLF_dir_add(const char *path) ATTR_NONNULL()
Definition: blf_dir.c:69
void BLF_clipping(int fontid, float xmin, float ymin, float xmax, float ymax)
Definition: blf.c:810
int BLF_set_default(void)
Definition: blf_default.c:61
void BLF_color4ub(int fontid, unsigned char r, unsigned char g, unsigned char b, unsigned char alpha)
Definition: blf.c:416
void BLF_wordwrap(int fontid, int wrap_width)
Definition: blf.c:822
void BLF_position(int fontid, float x, float y, float z)
Definition: blf.c:312
void BLF_metrics_attach(int fontid, unsigned char *mem, int mem_size)
Definition: blf.c:196
void BLF_dir_rem(const char *path) ATTR_NONNULL()
Definition: blf_dir.c:83
void BLF_boundbox(int fontid, const char *str, size_t len, struct rctf *box) ATTR_NONNULL()
Definition: blf.c:693
#define ATTR_NONNULL(...)
void BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() ATTR_WARN_UNUSED_RESULT
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble z
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble GLdouble r _GL_VOID_RET _GL_VOID GLfloat GLfloat r _GL_VOID_RET _GL_VOID GLint GLint r _GL_VOID_RET _GL_VOID GLshort GLshort r _GL_VOID_RET _GL_VOID GLdouble GLdouble r
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
Definition: btQuadWord.h:119
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
Definition: btVector3.h:356
void * user_data
static CCL_NAMESPACE_BEGIN const double alpha
#define str(s)
int count
static unsigned a[3]
Definition: RandGen.cpp:92
int lines
Definition: BLF_api.h:296
int width
Definition: BLF_api.h:300
float xmax
Definition: DNA_vec_types.h:85
float xmin
Definition: DNA_vec_types.h:85
float ymax
Definition: DNA_vec_types.h:86
float ymin
Definition: DNA_vec_types.h:86
int wrap_width(const struct SpaceText *st, struct ARegion *region)
uint len