VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/packer/pack_extensions.c@ 58529

最後變更 在這個檔案從58529是 50041,由 vboxsync 提交於 11 年 前

crOpenGL: crOpenGL: 1. workaround point sprite driver bugs; 2. workaround multi-string shader source driver bug; 3. proper GLhandle for OSX; 4. extended dumping; 5. misc fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 722 位元組
 
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
9int __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
23int __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}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette