Revision 1e77829e8e8015f4fbdb94907e01cf35b3139dde authored by noah_j on 30 August 2008, 21:42:42 UTC, committed by noah_j on 30 August 2008, 21:42:42 UTC
git-svn-id: https://svn.code.sf.net/p/ucblogo/code@193 fc4ef4ee-df3e-0410-84de-fb01f5d6c4f7
1 parent 0f1bb7e
nographics.h
/* A dummy graphics header file for computers without graphics */
#define GR_SIZE 1
#define prepare_to_draw nop()
#define done_drawing nop()
#define prepare_to_draw_turtle nop()
#define done_drawing_turtle nop()
#define screen_left 1
#define screen_right 100
#define screen_top 1
#define screen_bottom 100
#define screen_height (1 + screen_bottom - screen_top)
#define screen_width (1 + screen_right - screen_left)
#define screen_x_center (screen_left + (screen_width)/2)
#define screen_y_center (screen_top + (screen_height)/2)
#define turtle_left_max ((screen_left) - (screen_x_center))
#define turtle_right_max ((screen_right) - (screen_x_center))
#define turtle_top_max ((screen_y_center) - (screen_top))
#define turtle_bottom_max ((screen_y_center) - (screen_bottom))
#define screen_x_coord ((screen_x_center) + turtle_x)
#define screen_y_coord ((screen_y_center) - turtle_y)
#define turtle_height 18
#define turtle_half_bottom 6.0
#define turtle_side 19.0
#define clear_screen nop()
#define line_to(x,y) nop()
#define move_to(x,y) nop()
#define draw_string(s) nop()
#define set_pen_vis(v) nop()
#define set_pen_mode(m) nop()
#define set_pen_color(c) nop()
#define set_pen_width(w) nop()
#define set_pen_height(h) nop()
#define set_pen_x(x) nop()
#define set_pen_y(y) nop()
#define set_back_ground(c) nop()
/* pen_info is a stucture type with fields for the various
pen characteristics including the location, size, color,
mode (e.g. XOR or COPY), pattern, visibility (0 = visible) */
typedef struct { int dummy; } pen_info;
#define p_info_x(p) p.dummy
#define p_info_y(p) p.dummy
#define pen_width pw
#define pen_height ph
#define pen_color pc
#define pen_mode pm
#define pen_vis pv
#define pen_x px
#define pen_y py
#define get_node_pen_pattern make_intnode(0)
#define back_ground bg
#define pen_reverse nop()
#define pen_erase nop()
#define pen_down nop()
#define button FALSE
#define mouse_x 0
#define mouse_y 0
#define full_screen nop()
#define split_screen nop()
#define text_screen nop()
#define save_pen(p) nop()
#define restore_pen(p) nop()
#define plain_xor_pen() nop()
#define label(s) nop()
#define tone(p,d) nop()
#define get_pen_pattern(p) nop()
#define set_pen_pattern(p) nop()
#define fmod(x,y) x
#define set_list_pen_pattern(p) nop()
#define prepare_to_draw_turtle nop();
#define done_drawing_turtle nop();
extern int pw, ph, pc, pm, pv, px, py, bg;
extern void nop();
#define logofill nop
#define set_palette nop
#define get_palette nop
#define erase_screen nop
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...