home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / src / mmesa16.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-31  |  3.1 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:   mmesa16.c  $
  9. * Version:      $Revision:   1.4  $
  10. *
  11. * Language:     ANSI C
  12. * Environment:  Any
  13. *
  14. * Description:  Optimized 16bpp 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:   07 Apr 1997 17:21:48  $ $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(16,555,ushort);
  46. IMPLEMENT_WRITE_SPAN(16,565,ushort);
  47. IMPLEMENT_WRITE_SPAN_DITHER(16,DITHER555,ushort);
  48. IMPLEMENT_WRITE_SPAN_DITHER(16,DITHER565,ushort);
  49. IMPLEMENT_WRITE_SPAN_MONO(16,ushort);
  50. IMPLEMENT_WRITE_SPAN_MONO_DITHER(16,DITHER555,ushort);
  51. IMPLEMENT_WRITE_SPAN_MONO_DITHER(16,DITHER565,ushort);
  52.  
  53. /**********************************************************************/
  54. /*****              Write arrays of pixels                        *****/
  55. /**********************************************************************/
  56.  
  57. IMPLEMENT_WRITE_PIXELS(16,555,ushort);
  58. IMPLEMENT_WRITE_PIXELS(16,565,ushort);
  59. IMPLEMENT_WRITE_PIXELS_DITHER(16,DITHER555,ushort);
  60. IMPLEMENT_WRITE_PIXELS_DITHER(16,DITHER565,ushort);
  61. IMPLEMENT_WRITE_PIXELS_MONO(16,ushort);
  62. IMPLEMENT_WRITE_PIXELS_MONO_DITHER(16,DITHER555,ushort);
  63. IMPLEMENT_WRITE_PIXELS_MONO_DITHER(16,DITHER565,ushort);
  64.  
  65. /**********************************************************************/
  66. /*****                 Read spans of pixels                       *****/
  67. /**********************************************************************/
  68.  
  69. IMPLEMENT_READ_SPAN(16,555,ushort);
  70. IMPLEMENT_READ_SPAN(16,565,ushort);
  71.  
  72. /**********************************************************************/
  73. /*****                   Read arrays of pixels                    *****/
  74. /**********************************************************************/
  75.  
  76. IMPLEMENT_READ_PIXELS(16,555,ushort);
  77. IMPLEMENT_READ_PIXELS(16,565,ushort);
  78.  
  79.