1 | /* $Id: teximage.h,v 1.2 2000-05-23 20:34:57 jeroen Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Mesa 3-D graphics library
|
---|
5 | * Version: 3.3
|
---|
6 | *
|
---|
7 | * Copyright (C) 1999 Brian Paul All Rights Reserved.
|
---|
8 | *
|
---|
9 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
10 | * copy of this software and associated documentation files (the "Software"),
|
---|
11 | * to deal in the Software without restriction, including without limitation
|
---|
12 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
13 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
14 | * Software is furnished to do so, subject to the following conditions:
|
---|
15 | *
|
---|
16 | * The above copyright notice and this permission notice shall be included
|
---|
17 | * in all copies or substantial portions of the Software.
|
---|
18 | *
|
---|
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
---|
20 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
22 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
---|
23 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
24 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
25 | */
|
---|
26 |
|
---|
27 |
|
---|
28 | #ifndef TEXIMAGE_H
|
---|
29 | #define TEXIMAGE_H
|
---|
30 |
|
---|
31 |
|
---|
32 | #include "types.h"
|
---|
33 |
|
---|
34 |
|
---|
35 | /*** Internal functions ***/
|
---|
36 |
|
---|
37 |
|
---|
38 | extern GLint
|
---|
39 | _mesa_base_tex_format( GLint format );
|
---|
40 |
|
---|
41 |
|
---|
42 | extern struct gl_texture_image *
|
---|
43 | gl_alloc_texture_image( void );
|
---|
44 |
|
---|
45 |
|
---|
46 | extern void
|
---|
47 | gl_free_texture_image( struct gl_texture_image *teximage );
|
---|
48 |
|
---|
49 |
|
---|
50 |
|
---|
51 | /*** API entry point functions ***/
|
---|
52 |
|
---|
53 |
|
---|
54 | extern void
|
---|
55 | _mesa_TexImage1D( GLenum target, GLint level, GLint internalformat,
|
---|
56 | GLsizei width, GLint border,
|
---|
57 | GLenum format, GLenum type, const GLvoid *pixels );
|
---|
58 |
|
---|
59 |
|
---|
60 | extern void
|
---|
61 | _mesa_TexImage2D( GLenum target, GLint level, GLint internalformat,
|
---|
62 | GLsizei width, GLsizei height, GLint border,
|
---|
63 | GLenum format, GLenum type, const GLvoid *pixels );
|
---|
64 |
|
---|
65 |
|
---|
66 | extern void
|
---|
67 | _mesa_TexImage3D( GLenum target, GLint level, GLint internalformat,
|
---|
68 | GLsizei width, GLsizei height, GLsizei depth, GLint border,
|
---|
69 | GLenum format, GLenum type, const GLvoid *pixels );
|
---|
70 |
|
---|
71 |
|
---|
72 | extern void
|
---|
73 | _mesa_TexImage3DEXT( GLenum target, GLint level, GLenum internalformat,
|
---|
74 | GLsizei width, GLsizei height, GLsizei depth,
|
---|
75 | GLint border, GLenum format, GLenum type,
|
---|
76 | const GLvoid *pixels );
|
---|
77 |
|
---|
78 |
|
---|
79 | extern void
|
---|
80 | _mesa_GetTexImage( GLenum target, GLint level,
|
---|
81 | GLenum format, GLenum type, GLvoid *pixels );
|
---|
82 |
|
---|
83 |
|
---|
84 | extern void
|
---|
85 | _mesa_TexSubImage1D( GLenum target, GLint level, GLint xoffset,
|
---|
86 | GLsizei width,
|
---|
87 | GLenum format, GLenum type,
|
---|
88 | const GLvoid *pixels );
|
---|
89 |
|
---|
90 |
|
---|
91 | extern void
|
---|
92 | _mesa_TexSubImage2D( GLenum target, GLint level,
|
---|
93 | GLint xoffset, GLint yoffset,
|
---|
94 | GLsizei width, GLsizei height,
|
---|
95 | GLenum format, GLenum type,
|
---|
96 | const GLvoid *pixels );
|
---|
97 |
|
---|
98 |
|
---|
99 | extern void
|
---|
100 | _mesa_TexSubImage3D( GLenum target, GLint level,
|
---|
101 | GLint xoffset, GLint yoffset, GLint zoffset,
|
---|
102 | GLsizei width, GLsizei height, GLsizei depth,
|
---|
103 | GLenum format, GLenum type,
|
---|
104 | const GLvoid *pixels );
|
---|
105 |
|
---|
106 |
|
---|
107 | extern void
|
---|
108 | _mesa_CopyTexImage1D( GLenum target, GLint level, GLenum internalformat,
|
---|
109 | GLint x, GLint y, GLsizei width, GLint border );
|
---|
110 |
|
---|
111 |
|
---|
112 | extern void
|
---|
113 | _mesa_CopyTexImage2D( GLenum target, GLint level,
|
---|
114 | GLenum internalformat, GLint x, GLint y,
|
---|
115 | GLsizei width, GLsizei height, GLint border );
|
---|
116 |
|
---|
117 |
|
---|
118 | extern void
|
---|
119 | _mesa_CopyTexSubImage1D( GLenum target, GLint level, GLint xoffset,
|
---|
120 | GLint x, GLint y, GLsizei width );
|
---|
121 |
|
---|
122 |
|
---|
123 | extern void
|
---|
124 | _mesa_CopyTexSubImage2D( GLenum target, GLint level,
|
---|
125 | GLint xoffset, GLint yoffset,
|
---|
126 | GLint x, GLint y, GLsizei width, GLsizei height );
|
---|
127 |
|
---|
128 |
|
---|
129 | extern void
|
---|
130 | _mesa_CopyTexSubImage3D( GLenum target, GLint level,
|
---|
131 | GLint xoffset, GLint yoffset, GLint zoffset,
|
---|
132 | GLint x, GLint y, GLsizei width, GLsizei height );
|
---|
133 |
|
---|
134 | #endif
|
---|
135 |
|
---|