1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include "packer.h"
|
---|
8 |
|
---|
9 | #include <GL/glext.h>
|
---|
10 |
|
---|
11 | int __packTexParameterNumParams( GLenum param )
|
---|
12 | {
|
---|
13 | switch( param )
|
---|
14 | {
|
---|
15 | #ifdef CR_EXT_texture_filter_anisotropic
|
---|
16 | case GL_TEXTURE_MAX_ANISOTROPY_EXT:
|
---|
17 | return 1;
|
---|
18 | #endif
|
---|
19 | default:
|
---|
20 | break;
|
---|
21 | }
|
---|
22 | return 0;
|
---|
23 | }
|
---|
24 |
|
---|
25 | int __packFogParamsLength( GLenum param )
|
---|
26 | {
|
---|
27 | static int one_param = sizeof( GLfloat );
|
---|
28 | (void) one_param;
|
---|
29 | switch( param )
|
---|
30 | {
|
---|
31 | #ifdef CR_NV_fog_distance
|
---|
32 | case GL_FOG_DISTANCE_MODE_NV:
|
---|
33 | return one_param;
|
---|
34 | #endif
|
---|
35 | default:
|
---|
36 | break;
|
---|
37 | }
|
---|
38 | return 0;
|
---|
39 | }
|
---|