glcompfont.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #pragma once
  11. #include <stdbool.h>
  12. #include <stdlib.h>
  13. #include <string.h>
  14. #ifdef _WIN32
  15. #include <glcomp/glpangofont.h>
  16. #endif
  17. #include <glcomp/opengl.h>
  18. #include <glcomp/glcompdefs.h>
  19. #include <GL/glut.h>
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. void glprintfglut(void *font, float xpos, float ypos, float zpos, char *bf);
  24. glCompFont glNewFont(glCompSet *s, char *text, glCompColor *c, char *fontdesc,
  25. int fs, bool is2D);
  26. glCompFont glNewFontFromParent(glCompObj *o, char *text);
  27. void glDeleteFont(glCompFont * f);
  28. void glCompDrawText(glCompFont f, float x, float y);
  29. void glCompRenderText(glCompFont f, glCompObj *parentObj);
  30. void glCompDrawText3D(glCompFont f, float x, float y, double z, float w,
  31. float h);
  32. #ifdef __cplusplus
  33. }
  34. #endif