IMG_xxx.c
author Sam Lantinga <slouken@libsdl.org>
Fri, 14 Dec 2001 13:02:16 +0000
changeset 53 96b084473b47
parent 0 76be7dab668c
child 97 e1161bd417c4
permissions -rw-r--r--
*** empty log message ***
     1 /*
     2     SDL_image:  An example image loading library for use with SDL
     3     Copyright (C) 1999, 2000, 2001  Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Library General Public
     7     License as published by the Free Software Foundation; either
     8     version 2 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Library General Public License for more details.
    14 
    15     You should have received a copy of the GNU Library General Public
    16     License along with this library; if not, write to the Free
    17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 /* $Id$ */
    24 
    25 /* This is a generic "format not supported" image framework */
    26 
    27 #include <stdio.h>
    28 
    29 #include "SDL_image.h"
    30 
    31 #ifdef LOAD_XXX
    32 
    33 /* See if an image is contained in a data source */
    34 int IMG_isXXX(SDL_RWops *src)
    35 {
    36 	int is_XXX;
    37 
    38 	is_XXX = 0;
    39 
    40 	return(is_XXX);
    41 }
    42 
    43 /* Load a XXX type image from an SDL datasource */
    44 SDL_Surface *IMG_LoadXXX_RW(SDL_RWops *src)
    45 {
    46 	return(NULL);
    47 }
    48 
    49 #else
    50 
    51 /* See if an image is contained in a data source */
    52 int IMG_isXXX(SDL_RWops *src)
    53 {
    54 	return(0);
    55 }
    56 
    57 /* Load a XXX type image from an SDL datasource */
    58 SDL_Surface *IMG_LoadXXX_RW(SDL_RWops *src)
    59 {
    60 	return(NULL);
    61 }
    62 
    63 #endif /* LOAD_XXX */