summaryrefslogtreecommitdiff
path: root/inc/OpenGl_ImageBox.hxx
blob: e12cffe996606d35d98ea7a9b0cf3a8b303c0a3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Fonction
* ~~~~~~~~
*   Gestion des images sous OpenGL
*
*
* Attention:
* ~~~~~~~~~~~
*  Ce package a ete teste sur SGI, OSF, SUN, HP et WNT.
*
*
* Historique des modifications
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*   22-05-97: PCT ; creation
*   19-06-98: FMN ; Portage Optimizer (C++)
*   22-06-98: FGU ; Ajout ReadScaledImage et ReadSizeImage
*/
/*----------------------------------------------------------------------*/

#ifndef _OPENGL_IMAGEBOX_H__
#define _OPENGL_IMAGEBOX_H__


/*----------------------------------------------------------------------*/
/*
* Prototypes
*/

/*
* Points d'entree Public du module 
*/

unsigned *  read_texture(char *name, int *width, int *height, int *components);

void ReadScaledImage(char *file, int xsize, int ysize, char *buf, unsigned short *zsize);

void ReadSizeImage(char *, int *, int *);

void bwtorgba(unsigned char *b,unsigned char *l,int n);

void rgbtorgba(unsigned char *r,unsigned char *g,unsigned char *b,unsigned char *l,int n);

void rgbatorgba(unsigned char *r,unsigned char *g,unsigned char *b,unsigned char *a,unsigned char *l,int n);

/*----------------------------------------------------------------------*/

#endif /* _OPENGL_IMAGEBOX_H__ */