VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu_config.c@ 38157

最後變更 在這個檔案從38157是 17269,由 vboxsync 提交於 16 年 前

export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 904 位元組
 
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 "cr_string.h"
8#include "cr_environment.h"
9#include "cr_error.h"
10#include "cr_mem.h"
11#include "feedbackspu.h"
12
13#include <stdio.h>
14#ifndef WINDOWS
15#include <unistd.h>
16#endif
17
18static void __setDefaults( void )
19{
20 feedback_spu.render_mode = GL_RENDER;
21}
22
23static void set_default_viewport( void *foo, const char *response )
24{
25 sscanf( response, "%d", &(feedback_spu.default_viewport) );
26}
27
28/* option, type, nr, default, min, max, title, callback
29 */
30SPUOptions feedbackSPUOptions[] = {
31
32 { "default_viewport", CR_BOOL, 1, "0", "0", "1",
33 "Return default viewport parameters", (SPUOptionCB)set_default_viewport },
34
35 { NULL, CR_BOOL, 0, NULL, NULL, NULL, NULL, NULL },
36
37};
38
39
40void feedbackspuGatherConfiguration( void )
41{
42 __setDefaults();
43}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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