Last change
on this file since 40708 was 33457, checked in by vboxsync, 14 years ago |
crOpenGL: tabs to spaces
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
745 bytes
|
Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.