source: trunk/src/opengl/mesa/teximage.h@ 3830

Last change on this file since 3830 was 3597, checked in by jeroen, 25 years ago

* empty log message *

File size: 4.2 KB
Line 
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
38extern GLint
39_mesa_base_tex_format( GLint format );
40
41
42extern struct gl_texture_image *
43gl_alloc_texture_image( void );
44
45
46extern void
47gl_free_texture_image( struct gl_texture_image *teximage );
48
49
50
51/*** API entry point functions ***/
52
53
54extern 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
60extern 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
66extern 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
72extern 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
79extern void
80_mesa_GetTexImage( GLenum target, GLint level,
81 GLenum format, GLenum type, GLvoid *pixels );
82
83
84extern void
85_mesa_TexSubImage1D( GLenum target, GLint level, GLint xoffset,
86 GLsizei width,
87 GLenum format, GLenum type,
88 const GLvoid *pixels );
89
90
91extern 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
99extern 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
107extern void
108_mesa_CopyTexImage1D( GLenum target, GLint level, GLenum internalformat,
109 GLint x, GLint y, GLsizei width, GLint border );
110
111
112extern void
113_mesa_CopyTexImage2D( GLenum target, GLint level,
114 GLenum internalformat, GLint x, GLint y,
115 GLsizei width, GLsizei height, GLint border );
116
117
118extern void
119_mesa_CopyTexSubImage1D( GLenum target, GLint level, GLint xoffset,
120 GLint x, GLint y, GLsizei width );
121
122
123extern void
124_mesa_CopyTexSubImage2D( GLenum target, GLint level,
125 GLint xoffset, GLint yoffset,
126 GLint x, GLint y, GLsizei width, GLsizei height );
127
128
129extern 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
Note: See TracBrowser for help on using the repository browser.