home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / Mesa-3.1 / src / AOS / EXTENSIONS < prev    next >
Text File  |  1999-09-23  |  3KB  |  63 lines

  1.   /**********************************************************************
  2.    *** Optional functions:  these functions may or may not be         ***
  3.    *** implemented by the device driver.  If the device driver        ***
  4.    *** doesn't implement them it should never touch these pointers    ***
  5.    *** since Mesa will either set them to NULL or point them at a     ***
  6.    *** fall-back function.                                            ***
  7.    ***                                                                ***
  8.    *** these are my own extensions to the device-driver as often      ***
  9.    *** there exists calls that access whole array or we can quick     ***
  10.    *** optimize a bunch of span-calls to one array-call               ***
  11.    **********************************************************************/
  12.  
  13.   /***
  14.    *** Functions for writing pixels to the frame buffer:
  15.    ***/
  16.  
  17.   void (*WriteRGBAArray)( const GLcontext *ctx,
  18.                           GLint rowsize, GLint x, GLint y, GLint width, GLint height,
  19.                           CONST GLubyte rgba[][4], const GLubyte mask[][] );
  20.   void (*WriteRGBArray)( const GLcontext *ctx,
  21.                          GLint rowsize, GLint x, GLint y, GLint width, GLint height,
  22.                          CONST GLubyte rgba[][3], const GLubyte mask[][] );
  23.   /* Write an array of RGB[A] pixels.  The later version is only
  24.    * used to accelerate GL_RGB, GL_UNSIGNED_BYTE glDrawPixels() calls.
  25.    */
  26.  
  27.   void (*WriteMonoRGBAArray)( const GLcontext *ctx,
  28.                               GLint rowsize, GLint x, GLint y, GLint width, GLint height,
  29.                               const GLubyte mask[][] );
  30.   /* Write an array of mono-RGBA pixels.
  31.    */
  32.  
  33.   void (*WriteCI32Array)( const GLcontext *ctx,
  34.                           GLint rowsize, GLint x, GLint y, GLint width, GLint height,
  35.                           const GLuint index[], const GLubyte mask[][] );
  36.   void (*WriteCI8Array)( const GLcontext *ctx,
  37.                          GLint rowsize, GLint x, GLint y, GLint width, GLint height,
  38.                          const GLubyte index[], const GLubyte mask[][] );
  39.   /* Write an array of CI pixels.  32 or 8bpp.
  40.    */
  41.  
  42.   void (*WriteMonoCIArray)( const GLcontext *ctx,
  43.                             GLint rowsize, GLint x, GLint y, GLint width, GLint height,
  44.                             const GLubyte mask[][] );
  45.   /* Write an array of mono-CI pixels.
  46.    */
  47.  
  48.   /***
  49.    *** Functions to read Arrays from frame buffer:
  50.    ***/
  51.  
  52.   void (*ReadRGBAArray)( const GLcontext *ctx,
  53.                          GLint rowsize, GLint x, GLint y, GLint width, GLint height,
  54.                          CONST GLubyte rgba[][4] );
  55.   /* Read an array of RGBA pixels.
  56.    */
  57.  
  58.   void (*ReadCI32Array)( const GLcontext *ctx,
  59.                          GLint rowsize, GLint x, GLint y, GLint width, GLint height,
  60.                          const GLuint index[] );
  61.   /* Read an array of color index pixels.
  62.    */
  63.