Changeset 3597 for trunk/src/opengl/mesa/image.h
- Timestamp:
- May 23, 2000, 10:35:01 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/image.h
r2938 r3597 1 /* $Id: image.h,v 1. 1 2000-02-29 00:48:31 sandervlExp $ */1 /* $Id: image.h,v 1.2 2000-05-23 20:34:51 jeroen Exp $ */ 2 2 3 3 /* 4 4 * Mesa 3-D graphics library 5 * Version: 3. 15 * Version: 3.3 6 6 * 7 7 * Copyright (C) 1999 Brian Paul All Rights Reserved. … … 26 26 27 27 28 29 30 31 28 #ifndef IMAGE_H 32 29 #define IMAGE_H … … 36 33 37 34 38 extern void gl_flip_bytes( GLubyte *p, GLuint n );35 extern const struct gl_pixelstore_attrib _mesa_native_packing; 39 36 40 37 41 extern void gl_swap2( GLushort *p, GLuint n ); 38 extern void 39 _mesa_swap2( GLushort *p, GLuint n ); 42 40 43 extern void gl_swap4( GLuint *p, GLuint n ); 41 extern void 42 _mesa_swap4( GLuint *p, GLuint n ); 44 43 44 extern GLint 45 _mesa_sizeof_type( GLenum type ); 45 46 46 extern GLint gl_sizeof_type( GLenum type ); 47 extern GLint 48 _mesa_sizeof_packed_type( GLenum type ); 47 49 48 extern GLint gl_sizeof_packed_type( GLenum type ); 50 extern GLint 51 _mesa_components_in_format( GLenum format ); 49 52 50 extern GLint gl_components_in_format( GLenum format ); 53 extern GLint 54 _mesa_bytes_per_pixel( GLenum format, GLenum type ); 51 55 52 extern GLint gl_bytes_per_pixel( GLenum format, GLenum type ); 53 54 extern GLboolean gl_is_legal_format_and_type( GLenum format, GLenum type ); 56 extern GLboolean 57 _mesa_is_legal_format_and_type( GLenum format, GLenum type ); 55 58 56 59 57 60 extern GLvoid * 58 gl_pixel_addr_in_image( const struct gl_pixelstore_attrib *packing,59 60 61 61 _mesa_image_address( const struct gl_pixelstore_attrib *packing, 62 const GLvoid *image, GLsizei width, 63 GLsizei height, GLenum format, GLenum type, 64 GLint img, GLint row, GLint column ); 62 65 63 66 64 extern struct gl_image * 65 gl_unpack_bitmap( GLcontext *ctx, GLsizei width, GLsizei height, 66 const GLubyte *bitmap, 67 const struct gl_pixelstore_attrib *packing ); 68 69 70 extern void gl_unpack_polygon_stipple( const GLcontext *ctx, 71 const GLubyte *pattern, 72 GLuint dest[32] ); 73 74 75 extern void gl_pack_polygon_stipple( const GLcontext *ctx, 76 const GLuint pattern[32], 77 GLubyte *dest ); 78 79 80 extern struct gl_image * 81 gl_unpack_image( GLcontext *ctx, GLint width, GLint height, 82 GLenum srcFormat, GLenum srcType, const GLvoid *pixels, 83 const struct gl_pixelstore_attrib *packing ); 84 85 86 87 struct gl_image * 88 gl_unpack_image3D( GLcontext *ctx, GLint width, GLint height,GLint depth, 89 GLenum srcFormat, GLenum srcType, const GLvoid *pixels, 90 const struct gl_pixelstore_attrib *packing ); 67 extern GLint 68 _mesa_image_row_stride( const struct gl_pixelstore_attrib *packing, 69 GLint width, GLenum format, GLenum type ); 91 70 92 71 93 72 extern void 94 gl_pack_rgba_span( const GLcontext *ctx, 95 GLuint n, CONST GLubyte rgba[][4], 96 GLenum format, GLenum type, GLvoid *dest, 97 const struct gl_pixelstore_attrib *packing, 98 GLboolean applyTransferOps ); 73 _mesa_unpack_polygon_stipple( const GLubyte *pattern, GLuint dest[32], 74 const struct gl_pixelstore_attrib *unpacking ); 99 75 100 76 101 extern void gl_free_image( struct gl_image *image ); 77 extern void 78 _mesa_pack_polygon_stipple( const GLuint pattern[32], GLubyte *dest, 79 const struct gl_pixelstore_attrib *packing ); 102 80 103 81 104 extern GLboolean gl_image_error_test( GLcontext *ctx, 105 const struct gl_image *image, 106 const char *msg ); 107 108 109 /* 110 * New (3.3) functions 111 */ 82 extern void 83 _mesa_pack_rgba_span( const GLcontext *ctx, 84 GLuint n, CONST GLubyte rgba[][4], 85 GLenum format, GLenum type, GLvoid *dest, 86 const struct gl_pixelstore_attrib *packing, 87 GLboolean applyTransferOps ); 112 88 113 89 … … 128 104 GLboolean applyTransferOps ); 129 105 106 107 extern void 108 _mesa_unpack_stencil_span( const GLcontext *ctx, GLuint n, 109 GLenum dstType, GLvoid *dest, 110 GLenum srcType, const GLvoid *source, 111 const struct gl_pixelstore_attrib *unpacking, 112 GLboolean applyTransferOps ); 113 114 115 extern void 116 _mesa_unpack_depth_span( const GLcontext *ctx, GLuint n, GLdepth *dest, 117 GLenum srcType, const GLvoid *source, 118 const struct gl_pixelstore_attrib *unpacking, 119 GLboolean applyTransferOps ); 120 121 130 122 extern void * 131 123 _mesa_unpack_image( GLsizei width, GLsizei height, GLsizei depth, … … 134 126 135 127 128 extern GLvoid * 129 _mesa_unpack_bitmap( GLint width, GLint height, const GLubyte *pixels, 130 const struct gl_pixelstore_attrib *packing ); 131 132 extern void 133 _mesa_pack_bitmap( GLint width, GLint height, const GLubyte *source, 134 GLubyte *dest, const struct gl_pixelstore_attrib *packing ); 135 136 136 137 #endif
Note:
See TracChangeset
for help on using the changeset viewer.