tga.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. Copyright (C) 2004 Michael Liebscher
  3. Copyright (C) 1997-2001 Id Software, Inc.
  4. Copyright (C) 1995 Spencer Kimball and Peter Mattis
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16. */
  17. /*
  18. * tga.h: Handle Targa file format.
  19. *
  20. * Author: Michael Liebscher <johnnycanuck@users.sourceforge.net>
  21. * Date: 2004
  22. *
  23. * Acknowledgement:
  24. * Portion of this code was derived from Quake II, and was
  25. * originally written by id Software, Inc.
  26. *
  27. * Portion of this code was derived from The GIMP -- an image manipulation
  28. * program, and was originally written by Spencer Kimball and Peter Mattis.
  29. */
  30. #ifndef __TGA_H__
  31. #define __TGA_H__
  32. extern void LoadTGA( const char *filename, W8 **pic, W16 *width, W16 *height, W16 *bytes );
  33. extern W8 WriteTGA( const char *filename, W16 bpp, W16 width, W16 height,
  34. void *Data, W8 upsideDown, W8 rle );
  35. #endif /* __TGA_H__ */