source: trunk/src/opengl/mesa/texstate.h@ 3086

Last change on this file since 3086 was 2938, checked in by sandervl, 25 years ago

created

File size: 3.5 KB
Line 
1/* $Id: texstate.h,v 1.1 2000-02-29 00:48:39 sandervl Exp $ */
2
3/*
4 * Mesa 3-D graphics library
5 * Version: 3.1
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
29
30
31#ifndef TEXSTATE_H
32#define TEXSTATE_H
33
34
35#include "types.h"
36
37
38/*** Called from API ***/
39
40extern void gl_GetTexEnvfv( GLcontext *ctx,
41 GLenum target, GLenum pname, GLfloat *params );
42
43extern void gl_GetTexEnviv( GLcontext *ctx,
44 GLenum target, GLenum pname, GLint *params );
45
46extern void gl_GetTexGendv( GLcontext *ctx,
47 GLenum coord, GLenum pname, GLdouble *params );
48
49extern void gl_GetTexGenfv( GLcontext *ctx,
50 GLenum coord, GLenum pname, GLfloat *params );
51
52extern void gl_GetTexGeniv( GLcontext *ctx,
53 GLenum coord, GLenum pname, GLint *params );
54
55extern void gl_GetTexLevelParameterfv( GLcontext *ctx,
56 GLenum target, GLint level,
57 GLenum pname, GLfloat *params );
58
59extern void gl_GetTexLevelParameteriv( GLcontext *ctx,
60 GLenum target, GLint level,
61 GLenum pname, GLint *params );
62
63extern void gl_GetTexParameterfv( GLcontext *ctx, GLenum target,
64 GLenum pname, GLfloat *params );
65
66extern void gl_GetTexParameteriv( GLcontext *ctx,
67 GLenum target, GLenum pname, GLint *params );
68
69
70extern void gl_TexEnvfv( GLcontext *ctx,
71 GLenum target, GLenum pname, const GLfloat *param );
72
73
74extern void gl_TexParameterfv( GLcontext *ctx, GLenum target, GLenum pname,
75 const GLfloat *params );
76
77
78extern void gl_TexGenfv( GLcontext *ctx,
79 GLenum coord, GLenum pname, const GLfloat *params );
80
81
82
83extern void gl_SelectTextureTransform( GLcontext *ctx, GLenum target );
84
85
86/*
87 * GL_ARB_multitexture
88 */
89extern void gl_ActiveTexture( GLcontext *ctx, GLenum target );
90
91extern void gl_ClientActiveTexture( GLcontext *ctx, GLenum target );
92
93
94
95/*** Internal functions ***/
96
97extern void
98gl_put_texobj_on_dirty_list( GLcontext *ctx, struct gl_texture_object *t );
99
100#ifdef VMS
101#define gl_remove_texobj_from_dirty_list gl_remove_texobj_from_dirty_lis
102#endif
103extern void
104gl_remove_texobj_from_dirty_list( struct gl_shared_state *shared,
105 struct gl_texture_object *tObj );
106
107extern void
108gl_update_dirty_texobjs( GLcontext *ctx );
109
110
111#endif
112
Note: See TracBrowser for help on using the repository browser.