glcomptexture.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. /*Open GL texture handling and storing mechanism
  11. includes glPanel,glCompButton,glCompCustomButton,clCompLabel,glCompStyle
  12. */
  13. #pragma once
  14. #ifdef _WIN32
  15. #include "windows.h"
  16. #endif
  17. #include <stdbool.h>
  18. #include <stdio.h>
  19. #include <glcomp/opengl.h>
  20. #include <glcomp/glcompdefs.h>
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. glCompTex *glCompSetAddNewTexImage(glCompSet *s, int width, int height,
  25. const unsigned char *data, bool is2D);
  26. glCompTex *glCompSetAddNewTexLabel(glCompSet *s, char *def, int fs, char *text,
  27. bool is2D);
  28. extern void glCompDeleteTexture(glCompTex * t);
  29. #ifdef __cplusplus
  30. }
  31. #endif