Graphviz 13.0.0~dev.20241220.2304
|
#include <glcomp/glcompfont.h>
#include <glcomp/glcompset.h>
#include <glcomp/glpangofont.h>
#include <glcomp/glcomptexture.h>
#include <glcomp/glutils.h>
#include <GL/glut.h>
#include <stdbool.h>
#include <stddef.h>
#include <util/alloc.h>
Go to the source code of this file.
Functions | |
static void | print_bitmap_string (void *font, char *s) |
void | glprintfglut (void *font, float xpos, float ypos, float zpos, char *bf) |
void | glDeleteFont (glCompFont *f) |
glCompFont | glNewFont (glCompSet *s, char *text, glCompColor *c, char *fontdesc, int fs, bool is2D) |
glCompFont | glNewFontFromParent (glCompObj *o, char *text) |
void | glCompDrawText3D (glCompFont f, float x, float y, double z, float w, float h) |
void | glCompDrawText (glCompFont f, float x, float y) |
void | glCompRenderText (glCompFont f, glCompObj *parentObj) |
void glCompDrawText | ( | glCompFont | f, |
float | x, | ||
float | y | ||
) |
Definition at line 128 of file glcompfont.c.
References glCompTex::data, glCompTex::height, glCompFont::tex, and glCompTex::width.
Referenced by glCompRenderText().
void glCompDrawText3D | ( | glCompFont | f, |
float | x, | ||
float | y, | ||
double | z, | ||
float | w, | ||
float | h | ||
) |
Definition at line 109 of file glcompfont.c.
References glCompTex::id, glCompFont::tex, and z.
Referenced by EmbedText().
void glCompRenderText | ( | glCompFont | f, |
glCompObj * | parentObj | ||
) |
Definition at line 134 of file glcompfont.c.
References glCompFont::color, glCompObj_::common, glCompDrawText(), glCompSetColor(), glFontHJustifyCenter, glFontHJustifyNone, glFontVJustifyCenter, glFontVJustifyNone, glCompTex::height, glCompJustify::HJustify, glCompFont::justify, ref(), glCompCommon::refPos, glCompFont::tex, glCompJustify::VJustify, glCompTex::width, and glCompPoint::x.
Referenced by glCompLabelDraw().
void glDeleteFont | ( | glCompFont * | f | ) |
Definition at line 38 of file glcompfont.c.
References glCompFont::fontdesc, free(), glCompDeleteTexture(), and glCompFont::tex.
Referenced by glCompButtonNew(), glCompEmptyCommon(), glCompLabelNew(), glCompPanelNew(), and glCompSetNew().
glCompFont glNewFont | ( | glCompSet * | s, |
char * | text, | ||
glCompColor * | c, | ||
char * | fontdesc, | ||
int | fs, | ||
bool | is2D | ||
) |
Definition at line 46 of file glcompfont.c.
References glCompColor::A, glCompColor::B, glCompFont::color, font, glCompColor::G, glCompSetAddNewTexLabel(), glFontHJustifyNone, glFontVJustifyNone, gv_strdup(), NULL, and glCompColor::R.
Referenced by EmbedText(), and glNewFontFromParent().
glCompFont glNewFontFromParent | ( | glCompObj * | o, |
char * | text | ||
) |
Definition at line 70 of file glcompfont.c.
References glCompColor::A, glCompColor::B, glCompObj_::common, glCompCommon::compset, font, glCompColor::G, GLCOMPSET_FONT_COLOR_ALPHA, GLCOMPSET_FONT_COLOR_B, GLCOMPSET_FONT_COLOR_G, GLCOMPSET_FONT_COLOR_R, GLCOMPSET_FONT_DESC, GLCOMPSET_FONT_SIZE, glCompSetAddNewTexLabel(), glNewFont(), gv_strdup(), glCompCommon::parent, parent, and glCompColor::R.
Referenced by glCompButtonNew(), glCompInitCommon(), glCompLabelNew(), glCompPanelNew(), and glCompSetNew().
void glprintfglut | ( | void * | font, |
float | xpos, | ||
float | ypos, | ||
float | zpos, | ||
char * | bf | ||
) |
Definition at line 31 of file glcompfont.c.
References font, and print_bitmap_string().
Referenced by renderEdgeLabels(), renderNodeLabels(), and renderSelectedNodes().
|
static |
Definition at line 21 of file glcompfont.c.
References font.
Referenced by glprintfglut().