source: golgotha/src/golg/editor/commands/draw_modes.cc @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.5 KB
Line 
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
15li_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
22li_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
29li_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
38li_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
44li_automatic_add_function(g1_toggle_texture_loading, "View/Toggle Texture Loading");
45li_automatic_add_function(g1_wireframe, "View/Wireframe");
46li_automatic_add_function(g1_textured, "View/Textured");
47li_automatic_add_function(g1_solid_color, "View/Solid");
Note: See TracBrowser for help on using the repository browser.