Debian Codegraph @

debian/external_deps/fetk/sg/src/gl/image.h

raw
1 /* $Id: image.h,v 1.2 2000/10/27 15:21:40 mholst Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 2.2
6 * Copyright (C) 1995-1997 Brian Paul
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #ifndef IMAGE_H
24 #define IMAGE_H
25
26
27 #include "types.h"
28
29
30 extern void gl_flip_bytes( GLubyte *p, GLuint n );
31
32
33 extern void gl_swap2( GLushort *p, GLuint n );
34
35 extern void gl_swap4( GLuint *p, GLuint n );
36
37
38 extern GLint gl_sizeof_type( GLenum type );
39
40
41 extern GLint gl_components_in_format( GLenum format );
42
43
44 extern GLvoid *gl_pixel_addr_in_image( struct gl_pixelstore_attrib *packing,
45 const GLvoid *image, GLsizei width,
46 GLsizei height, GLenum format, GLenum type,
47 GLint img, GLint row, GLint column );
48
49
50 extern struct gl_image *gl_unpack_image( GLcontext *ctx,
51 GLint width, GLint height,
52 GLenum srcFormat, GLenum srcType,
53 GLenum destType,
54 const GLvoid *pixels,
55 GLboolean interleave );
56
57
58 struct gl_image *gl_unpack_image3D( GLcontext *ctx,
59 GLint width, GLint height,GLint depth,
60 GLenum srcFormat, GLenum srcType,
61 GLenum destType,
62 const GLvoid *pixels,
63 GLboolean interleave );
64
65
66 extern void gl_free_image( struct gl_image *image );
67
68
69 #endif