7fd59977 |
1 | /* |
2 | * Fonction |
3 | * ~~~~~~~~ |
4 | * Gestion des images sous OpenGL |
5 | * |
6 | * |
7 | * Attention: |
8 | * ~~~~~~~~~~~ |
9 | * Ce package a ete teste sur SGI, OSF, SUN, HP et WNT. |
10 | * |
11 | * |
12 | * Historique des modifications |
13 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
14 | * 22-05-97: PCT ; creation |
15 | * 19-06-98: FMN ; Portage Optimizer (C++) |
16 | * 22-06-98: FGU ; Ajout ReadScaledImage et ReadSizeImage |
17 | */ |
18 | /*----------------------------------------------------------------------*/ |
19 | |
20 | #ifndef _OPENGL_IMAGEBOX_H__ |
21 | #define _OPENGL_IMAGEBOX_H__ |
22 | |
23 | |
24 | /*----------------------------------------------------------------------*/ |
25 | /* |
26 | * Prototypes |
27 | */ |
28 | |
29 | /* |
30 | * Points d'entree Public du module |
31 | */ |
32 | |
33 | unsigned * read_texture(char *name, int *width, int *height, int *components); |
34 | |
35 | void ReadScaledImage(char *file, int xsize, int ysize, char *buf, unsigned short *zsize); |
36 | |
37 | void ReadSizeImage(char *, int *, int *); |
38 | |
39 | void bwtorgba(unsigned char *b,unsigned char *l,int n); |
40 | |
41 | void rgbtorgba(unsigned char *r,unsigned char *g,unsigned char *b,unsigned char *l,int n); |
42 | |
43 | void rgbatorgba(unsigned char *r,unsigned char *g,unsigned char *b,unsigned char *a,unsigned char *l,int n); |
44 | |
45 | /*----------------------------------------------------------------------*/ |
46 | |
47 | #endif /* _OPENGL_IMAGEBOX_H__ */ |