SDLimage 1.0.1

The IMGlib library has been renamed to SDLimage, and the version number
has been bumped to 1.0.1:
http://www.devolution.com/~slouken/SDL/projects/SDLimage/

New functions:
/* Invert the alpha of a surface for use with OpenGL
If you want to use a surface loaded with this library as an OpenGL texture,
set invart_alpha to 1. If you want to use it with SDL alpha blit routines,
set it to 0.
This function returns the old alpha inversion value.

Currently this is is only used by the PNG loader.
*/
extern int IMG_InvertAlpha(int on);

Enjoy!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

The IMGlib library has been renamed to SDLimage, and the version number
has been bumped to 1.0.1:
http://www.devolution.com/~slouken/SDL/projects/SDLimage/

Is that the port I sent you, or is that a new one? If so, you’ll find code
to invert the “alpha” value for the other ones (except for TIF and XXX
because they don’t actually do anything) in the other one. I will rip that
out and send you a new copy if it isn’t.

Enjoy!
-Sam Lantinga (slouken at devolution.com)

Nicholas

----- Original Message -----
From: slouken@devolution.com (Sam Lantinga)
To: sdl at lokigames.com
Date: Sunday, January 16, 2000 5:29 AM
Subject: [SDL] SDLimage 1.0.1

Maybe you had a IMG.h somewhere, but 1.0.1 does not compile
out-of-the-tar.gz :wink:

Could we have a 1.0.2 release that fixes this problem?


Regards,
	HakanOn Sun, 16 Jan 2000, you wrote:

The IMGlib library has been renamed to SDLimage, and the version number
has been bumped to 1.0.1:
http://www.devolution.com/~slouken/SDL/projects/SDLimage/


diff -wbur SDLimage-1.0.1.dist/IMG.c SDLimage-1.0.1/IMG.c
— SDLimage-1.0.1.dist/IMG.c Sun Jan 16 13:54:14 2000
+++ SDLimage-1.0.1/IMG.c Sun Jan 16 19:39:31 2000
@@ -26,7 +26,7 @@

#include <stdio.h>

-#include “IMG.h”
+#include “SDL_image.h”

/* Table of image detection and loading functions */
static struct {
diff -wbur SDLimage-1.0.1.dist/IMG_bmp.c SDLimage-1.0.1/IMG_bmp.c
— SDLimage-1.0.1.dist/IMG_bmp.c Mon Dec 13 04:00:34 1999
+++ SDLimage-1.0.1/IMG_bmp.c Sun Jan 16 19:39:39 2000
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <string.h>

-#include “IMG.h”
+#include “SDL_image.h”

#ifdef LOAD_BMP

diff -wbur SDLimage-1.0.1.dist/IMG_gif.c SDLimage-1.0.1/IMG_gif.c
— SDLimage-1.0.1.dist/IMG_gif.c Mon Dec 13 04:02:05 1999
+++ SDLimage-1.0.1/IMG_gif.c Sun Jan 16 19:39:46 2000
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <string.h>

-#include “IMG.h”
+#include “SDL_image.h”

#ifdef LOAD_GIF

diff -wbur SDLimage-1.0.1.dist/IMG_jpg.c SDLimage-1.0.1/IMG_jpg.c
— SDLimage-1.0.1.dist/IMG_jpg.c Mon Dec 13 03:59:00 1999
+++ SDLimage-1.0.1/IMG_jpg.c Sun Jan 16 19:39:57 2000
@@ -26,7 +26,7 @@

#include <stdio.h>

-#include “IMG.h”
+#include “SDL_image.h”

#ifdef LOAD_JPG

diff -wbur SDLimage-1.0.1.dist/IMG_pcx.c SDLimage-1.0.1/IMG_pcx.c
— SDLimage-1.0.1.dist/IMG_pcx.c Mon Dec 13 04:02:17 1999
+++ SDLimage-1.0.1/IMG_pcx.c Sun Jan 16 19:40:04 2000
@@ -28,7 +28,7 @@

#include “SDL_endian.h”

-#include “IMG.h”
+#include “SDL_image.h”

#ifdef LOAD_PCX

diff -wbur SDLimage-1.0.1.dist/IMG_png.c SDLimage-1.0.1/IMG_png.c
— SDLimage-1.0.1.dist/IMG_png.c Sun Jan 16 13:58:13 2000
+++ SDLimage-1.0.1/IMG_png.c Sun Jan 16 19:40:10 2000
@@ -27,7 +27,7 @@
#include <stdlib.h>
#include <stdio.h>

-#include “IMG.h”
+#include “SDL_image.h”

#ifdef LOAD_PNG

diff -wbur SDLimage-1.0.1.dist/IMG_ppm.c SDLimage-1.0.1/IMG_ppm.c
— SDLimage-1.0.1.dist/IMG_ppm.c Mon Dec 13 04:02:26 1999
+++ SDLimage-1.0.1/IMG_ppm.c Sun Jan 16 19:40:17 2000
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <ctype.h>

-#include “IMG.h”
+#include “SDL_image.h”

#ifdef LOAD_PPM

diff -wbur SDLimage-1.0.1.dist/IMG_tif.c SDLimage-1.0.1/IMG_tif.c
— SDLimage-1.0.1.dist/IMG_tif.c Mon Dec 13 03:59:11 1999
+++ SDLimage-1.0.1/IMG_tif.c Sun Jan 16 19:40:23 2000
@@ -26,7 +26,7 @@

#include <stdio.h>

-#include “IMG.h”
+#include “SDL_image.h”

#ifdef LOAD_TIF

diff -wbur SDLimage-1.0.1.dist/IMG_xxx.c SDLimage-1.0.1/IMG_xxx.c
— SDLimage-1.0.1.dist/IMG_xxx.c Mon Dec 13 04:02:36 1999
+++ SDLimage-1.0.1/IMG_xxx.c Sun Jan 16 19:40:28 2000
@@ -26,7 +26,7 @@

#include <stdio.h>

-#include “IMG.h”
+#include “SDL_image.h”

#ifdef LOAD_XXX

diff -wbur SDLimage-1.0.1.dist/show.c SDLimage-1.0.1/show.c
— SDLimage-1.0.1.dist/show.c Fri Oct 8 10:52:29 1999
+++ SDLimage-1.0.1/show.c Sun Jan 16 19:40:37 2000
@@ -26,7 +26,7 @@
#include <stdio.h>

#include “SDL.h”
-#include “IMG.h”
+#include “SDL_image.h”

main(int argc, char *argv[])


Done.

Thanks!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software> On Sun, 16 Jan 2000, you wrote:

The IMGlib library has been renamed to SDLimage, and the version number
has been bumped to 1.0.1:
http://www.devolution.com/~slouken/SDL/projects/SDLimage/

Maybe you had a IMG.h somewhere, but 1.0.1 does not compile
out-of-the-tar.gz :wink:

Could we have a 1.0.2 release that fixes this problem?


“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec