code style

This commit is contained in:
Phuntsok Drak-pa 2018-11-07 00:45:09 +01:00
parent cda41118f8
commit a036b86ba7
2 changed files with 4 additions and 4 deletions

View File

@ -178,7 +178,7 @@ GLubyte *imageToData(Image_t t_img) {
* \param[out] img Objet \ref Image manipulable
* \return Retourne 1 en cas de succès
*/
int ImageLoadPPM(char *t_filename, Image *t_img) {
int imageLoadPPM(char *t_filename, Image *t_img) {
FILE *fp;
unsigned long size;
GLubyte *data = NULL;
@ -200,7 +200,7 @@ int ImageLoadPPM(char *t_filename, Image *t_img) {
* \param[in] filename Nom du fichier image à ouvrir
* \param[in] img Objet \ref Image à écrire
*/
void imagesavePPM(char *t_filename, Image_t t_img) {
void imageSavePPM(char *t_filename, Image_t t_img) {
FILE *fp;
GLubyte *data;
fp = get_file(t_filename, "wb"); /* open file for output */

View File

@ -29,8 +29,8 @@ void dataToImage(Image *img, GLubyte *data, unsigned long size);
/// \brief Convertit les pixels dune image en tableau natif OpenGL
GLubyte *imageToData(Image_t img);
/// \brief Ouverture et lecture de limage dentrée
int ImageLoadPPM(char *filename, Image_t img);
int imageLoadPPM(char *filename, Image_t img);
/// \brief Ouverture et écriture de l'image de sortie
void imagesavePPM(char *filename, Image_t img);
void imageSavePPM(char *filename, Image_t img);
#endif /* IMGTACHES_SRC_PPM_H_ */