| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#include <stdbool.h> |
| 14 |
#include <stdlib.h> |
| 15 |
#include <string.h> |
| 16 |
#include <glcomp/opengl.h> |
| 17 |
#include <glcomp/glcompdefs.h> |
| 18 |
#include <GL/glut.h> |
| 19 |
|
| 20 |
#ifdef __cplusplus |
| 21 |
extern "C" { |
| 22 |
#endif |
| 23 |
|
| 24 |
void glprintfglut(void *font, float xpos, float ypos, float zpos, char *bf); |
| 25 |
|
| 26 |
glCompFont glNewFont(glCompSet *s, const char *text, glCompColor *c, |
| 27 |
char *fontdesc, int fs, bool is2D); |
| 28 |
glCompFont glNewFontFromParent(glCompObj *o, const char *text); |
| 29 |
void glDeleteFont(glCompFont * f); |
| 30 |
void glCompDrawText(glCompFont f, double x, double y); |
| 31 |
void glCompRenderText(glCompFont f, glCompObj *parentObj); |
| 32 |
void glCompDrawText3D(glCompFont f, float x, float y, double z, float w, |
| 33 |
float h); |
| 34 |
|
| 35 |
#ifdef __cplusplus |
| 36 |
} |
| 37 |
#endif |