VirtualBox

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

Last change on this file since 35263 was 17269, checked in by vboxsync, 15 years ago

export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 904 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 "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}
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use