#include "gui.h"
#include <stdio.h>
Go to the source code of this file.
Macros |
| #define | MAX_NUMBER_ERRORS 35 |
| #define | UNDRAW_MAX 100000 |
| #define | ledfir(x, y, dx, dy, c) if(((val >> c)&1)) (*local_draw)((x + off_x + offset),((y + off_y)), dx, dy, local_info) |
| #define | POS_HIRES(num) ((num+(HI_RES_MAP_DIMENSION*2))&(HI_RES_MAP_DIMENSION-1)) |
| #define | CONVERT_X(x, cx) (n_uint)((POS_HIRES((x)+cx)) ) |
| #define | CONVERT_Y(y, cy) (n_uint)((POS_HIRES((y)+cy)) << HI_RES_MAP_BITS) |
| #define | CONVERT_XY(x, y) (CONVERT_X(x) | CONVERT_Y(y)) |
| #define | SUBSTA(c) ((c<<8)|c) |
| #define | mndivmin 15 |
| #define | mndivhr 180 |
| #define | mndivmonth 7 |
| #define | mndivyear 91 |
| #define | FACING_OFFSIDE ((terrain_dim_x-(512-411))) |
| #define | SP_EN_OFFSIDE ((terrain_dim_x-(512-325))) |
| #define | GENETICS_X (terrain_dim_x-69) |
| #define | GENETICS_Y (55) |
| #define | GENDER_X (terrain_dim_x-110) |
| #define | GENDER_Y (10) |
| #define | ACTIVE_PIXEL(px, py) sketch_psetc(POSITIVE_LAND_COORD(px),POSITIVE_LAND_COORD(py),COLOUR_RED) |
| #define | ERASER_PIXEL(px, py) |
Functions |
| void | graph_draw (noble_simulation *local_sim, n_byte *graph, n_int dim_x, n_int dim_y) |
| n_int | draw_toggle_weather (void) |
| n_int | draw_toggle_brain (void) |
| n_int | draw_toggle_braincode (void) |
| n_int | draw_toggle_territory (void) |
| n_int | draw_toggle_tide_daylight (void) |
| void | draw_undraw_clear (void) |
| n_byte * | draw_offscreen (n_byte *value) |
| n_byte * | draw_pointer (n_byte which_one) |
| void | draw_about (n_constant_string platform) |
| void | draw_string_line (n_constant_string str, n_int off_x, n_int off_y, n_join *draw) |
| void | draw_string (n_constant_string str, n_int off_x, n_int off_y, n_join *draw) |
| void | draw_fit (n_byte *points, n_byte2 *color_fit) |
| void | draw_color_time (n_byte2 *color_fit, n_byte2 time) |
| n_int | draw_error (n_constant_string error_text, n_constant_string location, n_int line_number) |
| void | draw_terrain_coord (n_int *co_x, n_int *co_y) |
| void | draw_window (n_int dim_x, n_int dim_y) |
| n_int | draw_cycle (void) |
Macro Definition Documentation
| #define ERASER_PIXEL |
( |
|
px, |
|
|
|
py |
|
) |
| |
| #define FACING_OFFSIDE ((terrain_dim_x-(512-411))) |
| #define GENDER_X (terrain_dim_x-110) |
| #define GENETICS_X (terrain_dim_x-69) |
| #define ledfir |
( |
|
x, |
|
|
|
y, |
|
|
|
dx, |
|
|
|
dy, |
|
|
|
c |
|
) |
| if(((val >> c)&1)) (*local_draw)((x + off_x + offset),((y + off_y)), dx, dy, local_info) |
| #define MAX_NUMBER_ERRORS 35 |
| #define SP_EN_OFFSIDE ((terrain_dim_x-(512-325))) |
| #define SUBSTA |
( |
|
c | ) |
((c<<8)|c) |
| #define UNDRAW_MAX 100000 |
Function Documentation
| n_int draw_cycle |
( |
void |
| ) |
|
This is used to produce letter LED style letters through the generic draw function specified.
- Parameters:
-
| str | The string to be drawn. |
| off_x | The starting x location for the string to be drawn. |
| off_y | The starting y location for the string to be drawn. |
| draw | The generic draw function used to draw the character. |
Definition at line 456 of file draw.c.
| void draw_terrain_coord |
( |
n_int * |
co_x, |
|
|
n_int * |
co_y |
|
) |
| |
| n_int draw_toggle_brain |
( |
void |
| ) |
|
| n_int draw_toggle_braincode |
( |
void |
| ) |
|
| n_int draw_toggle_territory |
( |
void |
| ) |
|
| n_int draw_toggle_tide_daylight |
( |
void |
| ) |
|
| n_int draw_toggle_weather |
( |
void |
| ) |
|
| void draw_undraw_clear |
( |
void |
| ) |
|
Variable Documentation
Initial value:
{
0, 0, 0, 0,
106, 43, 70, 120,
125, 107, 201, 202,
128, 255, 255, 239,
150, 88, 169, 79,
190, 8, 15, 7,
208, 208, 216, 206,
255, 255, 255, 255
}
Definition at line 531 of file draw.c.