Last change
on this file since 70939 was 69392, checked in by vboxsync, 7 years ago |
GuestHost/OpenGL: scm updates
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
722 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 | int __packTexParameterNumParams( GLenum param )
|
---|
10 | {
|
---|
11 | switch( param )
|
---|
12 | {
|
---|
13 | #ifdef CR_EXT_texture_filter_anisotropic
|
---|
14 | case GL_TEXTURE_MAX_ANISOTROPY_EXT:
|
---|
15 | return 1;
|
---|
16 | #endif
|
---|
17 | default:
|
---|
18 | break;
|
---|
19 | }
|
---|
20 | return 0;
|
---|
21 | }
|
---|
22 |
|
---|
23 | int __packFogParamsLength( GLenum param )
|
---|
24 | {
|
---|
25 | static int one_param = sizeof( GLfloat );
|
---|
26 | (void) one_param;
|
---|
27 | switch( param )
|
---|
28 | {
|
---|
29 | #ifdef CR_NV_fog_distance
|
---|
30 | case GL_FOG_DISTANCE_MODE_NV:
|
---|
31 | return one_param;
|
---|
32 | #endif
|
---|
33 | default:
|
---|
34 | break;
|
---|
35 | }
|
---|
36 | return 0;
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.