]> granicus.if.org Git - graphviz/commitdiff
remove commented out glcompfont code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 23:55:34 +0000 (16:55 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 03:13:25 +0000 (20:13 -0700)
lib/glcomp/glcompfont.c
lib/glcomp/glcompfont.h

index 78a512c3f5bbf56cfa74f77fa14113045ea076f3..5d832fd5be549ef59f71dba0ee8b7f84adbe6718 100644 (file)
@@ -21,7 +21,6 @@ static void print_bitmap_string(void *font, char *s)
     if (s && strlen(s)) {
        while (*s) {
            glutBitmapCharacter(font, *s);
-//         glutBitmapCharacter(GLUT_BITMAP_HELVETICA_12, *s);
            s++;
        }
     }
@@ -142,7 +141,6 @@ void glCompDrawText3D(glCompFont * f,GLfloat x,GLfloat y,GLfloat z,GLfloat w,GLf
 
 void glCompDrawText(glCompFont * f,GLfloat x,GLfloat y)
 {
-//    change_fontC(f->tex->data,f->tex->width,f->tex->height,&f->color);
     glRasterPos2f(x, y);
     glDrawPixels(f->tex->width, f->tex->height, GL_RGBA, GL_UNSIGNED_BYTE,  f->tex->data);
 }
index 178b79409880795fcab6b8b01b6077312ee9c7c2..33e7224ae94cf3fa374ba6ee2b8966cb8661402d 100644 (file)
@@ -24,17 +24,6 @@ typedef float GLfloat;
 
 #ifdef __cplusplus
 extern "C" {
-#endif
-#if 0
-    void copy_font(glCompFont * targetfont, const glCompFont * sourcefont);
-    fontset_t *fontset_init(void);
-    void free_font_set(fontset_t * fontset);
-    glCompFont *add_font(fontset_t * fontset, char *fontdesc, int fs);
-    glCompFont *add_glut_font(fontset_t * fontset, void *glutfont);
-    void fontColor(glCompFont * font, float r, float g, float b, float a);
-    glCompFont *font_init(void);
-    int glCompLoadFontPNG(char *name, int id);
-    void glprintf(glCompFont *, GLfloat, GLfloat, GLfloat, GLfloat, char *);
 #endif
 
     void glprintfglut(void *font, GLfloat xpos, GLfloat ypos, GLfloat zpos, char *bf);