123456789101112131415161718192021222324252627 |
- #ifndef DD_STRING3D_H
- #define DD_STRING3D_H
- #include "dd_mesh.h"
- #include "dd_vector.h"
- /* string3d
- * Used to draw 3d text on screen.
- * This class has all the letters in a static way so they
- * are loaded once using the `init()` function.
- * Each instance of this class, behaves like a style-font,
- * this means that it has data to display text, but does not
- * save the text itself.
- */
- struct dd_mesh **letter, **number;
- void dd_string3d_init();
- struct dd_string3d {
- struct dd_vec3 colorFront, colorBack;
- unsigned char align;
- };
- void dd_string3d_draw(struct dd_string3d *str3d, const char* text);
- void dd_string3d_draw_int(struct dd_string3d *str3d, int num);
- #endif
|