1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #include "lisp/li_init.hh"
|
---|
10 | #include "lisp/lisp.hh"
|
---|
11 | #include "g1_render.hh"
|
---|
12 | #include "r1_api.hh"
|
---|
13 | #include "tmanage.hh"
|
---|
14 |
|
---|
15 | li_object *g1_wireframe(li_object *o, li_environment *env)
|
---|
16 | {
|
---|
17 | g1_render.draw_mode=g1_render_class::WIREFRAME;
|
---|
18 | li_call("redraw");
|
---|
19 | return 0;
|
---|
20 | }
|
---|
21 |
|
---|
22 | li_object *g1_textured(li_object *o, li_environment *env)
|
---|
23 | {
|
---|
24 | g1_render.draw_mode=g1_render_class::TEXTURED;
|
---|
25 | li_call("redraw");
|
---|
26 | return 0;
|
---|
27 | }
|
---|
28 |
|
---|
29 | li_object *g1_solid_color(li_object *o, li_environment *env)
|
---|
30 | {
|
---|
31 | g1_render.draw_mode=g1_render_class::SOLID;
|
---|
32 | li_call("redraw");
|
---|
33 | return 0;
|
---|
34 | }
|
---|
35 |
|
---|
36 |
|
---|
37 |
|
---|
38 | li_object *g1_toggle_texture_loading(li_object *o, li_environment *env)
|
---|
39 | {
|
---|
40 | g1_render.r_api->get_tmanager()->toggle_texture_loading();
|
---|
41 | return 0;
|
---|
42 | }
|
---|
43 |
|
---|
44 | li_automatic_add_function(g1_toggle_texture_loading, "View/Toggle Texture Loading");
|
---|
45 | li_automatic_add_function(g1_wireframe, "View/Wireframe");
|
---|
46 | li_automatic_add_function(g1_textured, "View/Textured");
|
---|
47 | li_automatic_add_function(g1_solid_color, "View/Solid");
|
---|