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

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

* empty log message *

File size: 4.2 KB
RevLine 
[3597]1/* $Id: teximage.h,v 1.2 2000-05-23 20:34:57 jeroen Exp $ */
[2938]2
3/*
4 * Mesa 3-D graphics library
[3597]5 * Version: 3.3
[2938]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
[3597]38extern GLint
39_mesa_base_tex_format( GLint format );
[2938]40
41
[3597]42extern struct gl_texture_image *
43gl_alloc_texture_image( void );
[2938]44
45
[3597]46extern void
47gl_free_texture_image( struct gl_texture_image *teximage );
[2938]48
49
50
[3597]51/*** API entry point functions ***/
[2938]52
53
[3597]54extern void
55_mesa_TexImage1D( GLenum target, GLint level, GLint internalformat,
56 GLsizei width, GLint border,
57 GLenum format, GLenum type, const GLvoid *pixels );
[2938]58
59
[3597]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 );
[2938]64
65
[3597]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 );
[2938]70
71
[3597]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 );
[2938]77
78
[3597]79extern void
80_mesa_GetTexImage( GLenum target, GLint level,
81 GLenum format, GLenum type, GLvoid *pixels );
[2938]82
83
[3597]84extern void
85_mesa_TexSubImage1D( GLenum target, GLint level, GLint xoffset,
86 GLsizei width,
87 GLenum format, GLenum type,
88 const GLvoid *pixels );
[2938]89
90
[3597]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 );
[2938]97
98
[3597]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 );
[2938]105
106
[3597]107extern void
108_mesa_CopyTexImage1D( GLenum target, GLint level, GLenum internalformat,
109 GLint x, GLint y, GLsizei width, GLint border );
[2938]110
111
[3597]112extern void
113_mesa_CopyTexImage2D( GLenum target, GLint level,
114 GLenum internalformat, GLint x, GLint y,
115 GLsizei width, GLsizei height, GLint border );
[2938]116
117
[3597]118extern void
119_mesa_CopyTexSubImage1D( GLenum target, GLint level, GLint xoffset,
120 GLint x, GLint y, GLsizei width );
[2938]121
122
[3597]123extern void
124_mesa_CopyTexSubImage2D( GLenum target, GLint level,
125 GLint xoffset, GLint yoffset,
126 GLint x, GLint y, GLsizei width, GLsizei height );
[2938]127
[3597]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
[2938]134#endif
135
Note: See TracBrowser for help on using the repository browser.