home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / src / mmesa32.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-31  |  3.0 KB  |  79 lines

  1. /****************************************************************************
  2. *
  3. *                      Mesa bindings for SciTech MGL
  4. *
  5. *                   Copyright (C) 1996 SciTech Software.
  6. *                           All rights reserved.
  7. *
  8. * Filename:     $Workfile:   mmesa32.c  $
  9. * Version:      $Revision:   1.0  $
  10. *
  11. * Language:     ANSI C
  12. * Environment:  Any
  13. *
  14. * Description:  Optimized 32bpp rendering functions.
  15. *
  16. * This library is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU Library General Public
  18. * License as published by the Free Software Foundation; either
  19. * version 2 of the License, or (at your option) any later version.
  20. *
  21. * This library is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  24. * Library General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU Library General Public
  27. * License along with this library; if not, write to the Free
  28. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  29. *
  30. * $Date:   02 Apr 1997 13:30:04  $ $Author:   KendallB  $
  31. *
  32. ****************************************************************************/
  33.  
  34. #include "mmesap.h"
  35.  
  36. /*------------------------- Implementation --------------------------------*/
  37.  
  38. #pragma warn -par
  39. #include "mmesai.c"
  40.  
  41. /**********************************************************************/
  42. /*****            Write spans of pixels                           *****/
  43. /**********************************************************************/
  44.  
  45. IMPLEMENT_WRITE_SPAN(32,ARGB,ulong);
  46. IMPLEMENT_WRITE_SPAN(32,ABGR,ulong);
  47. IMPLEMENT_WRITE_SPAN(32,RGBA,ulong);
  48. IMPLEMENT_WRITE_SPAN(32,BGRA,ulong);
  49. IMPLEMENT_WRITE_SPAN_MONO(32,ulong);
  50.  
  51. /**********************************************************************/
  52. /*****              Write arrays of pixels                        *****/
  53. /**********************************************************************/
  54.  
  55. IMPLEMENT_WRITE_PIXELS(32,ARGB,ulong);
  56. IMPLEMENT_WRITE_PIXELS(32,ABGR,ulong);
  57. IMPLEMENT_WRITE_PIXELS(32,RGBA,ulong);
  58. IMPLEMENT_WRITE_PIXELS(32,BGRA,ulong);
  59. IMPLEMENT_WRITE_PIXELS_MONO(32,ulong);
  60.  
  61. /**********************************************************************/
  62. /*****                 Read spans of pixels                       *****/
  63. /**********************************************************************/
  64.  
  65. IMPLEMENT_READ_SPAN(32,ARGB,ulong);
  66. IMPLEMENT_READ_SPAN(32,ABGR,ulong);
  67. IMPLEMENT_READ_SPAN(32,RGBA,ulong);
  68. IMPLEMENT_READ_SPAN(32,BGRA,ulong);
  69.  
  70. /**********************************************************************/
  71. /*****                   Read arrays of pixels                    *****/
  72. /**********************************************************************/
  73.  
  74. IMPLEMENT_READ_PIXELS(32,ARGB,ulong);
  75. IMPLEMENT_READ_PIXELS(32,ABGR,ulong);
  76. IMPLEMENT_READ_PIXELS(32,RGBA,ulong);
  77. IMPLEMENT_READ_PIXELS(32,BGRA,ulong);
  78.  
  79.