VirtualBox

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

Last change on this file since 65277 was 63206, checked in by vboxsync, 9 years ago

GA/common/crOpenGL: warnings (gcc)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 919 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 (void) foo;
26 sscanf( response, "%d", &(feedback_spu.default_viewport) );
27}
28
29/* option, type, nr, default, min, max, title, callback
30 */
31SPUOptions feedbackSPUOptions[] = {
32
33 { "default_viewport", CR_BOOL, 1, "0", "0", "1",
34 "Return default viewport parameters", (SPUOptionCB)set_default_viewport },
35
36 { NULL, CR_BOOL, 0, NULL, NULL, NULL, NULL, NULL },
37
38};
39
40
41void feedbackspuGatherConfiguration( void )
42{
43 __setDefaults();
44}
Note: See TracBrowser for help on using the repository browser.

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