glcompimage.h 1.0 KB

123456789101112131415161718192021222324252627282930
  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 <glcomp/glcompdefs.h>
  12. #include <stdbool.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. glCompImage *glCompImageNewFile(float x, float y, const char *imgfile);
  17. glCompImage *glCompImageNew(void *par, float x, float y);
  18. extern void glCompImageDelete(glCompImage * p);
  19. int glCompImageLoad(glCompImage *i, const unsigned char *data, int width,
  20. int height, bool is2D);
  21. int glCompImageLoadPng(glCompImage *i, const char *pngFile);
  22. extern void glCompImageDraw(void *obj);
  23. #ifdef __cplusplus
  24. }
  25. #endif