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