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 |
|
---|
18 | static void __setDefaults( void )
|
---|
19 | {
|
---|
20 | feedback_spu.render_mode = GL_RENDER;
|
---|
21 | }
|
---|
22 |
|
---|
23 | static 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 | */
|
---|
30 | SPUOptions 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 |
|
---|
40 | void feedbackspuGatherConfiguration( void )
|
---|
41 | {
|
---|
42 | __setDefaults();
|
---|
43 | }
|
---|