#include "Buzz_inc.h"
#include "externs.h"
#include <assert.h>
Go to the source code of this file.
Defines | |
#define | swap(a, b) (t = a, a = b, b = t) |
Functions | |
void | gr_maybe_sync (void) |
void | gr_set_color_map (unsigned char *map) |
void | gr_sync (void) |
void | grClearArea (int x1, int y1, int x2, int y2) |
void | grDrawLine (int x1, int y1, int x2, int y2) |
void | grDrawRect (int x1, int y1, int x2, int y2, int mode) |
int | grGetMouseButtons (void) |
int | grGetMouseCurPos (int *xp, int *yp) |
int | grGetMousePressedPos (int *xp, int *yp) |
int | grGetPixel (int x, int y) |
int | grInitMouse (void) |
Unknown function. | |
void | grLineRel (int dx, int dy) |
void | grLineTo (int x_arg, int y_arg) |
void | grMoveRel (int dx, int dy) |
void | grMoveTo (int x, int y) |
void | grPutPixel (int x, int y, int color) |
void | grSetBkColor (int color) |
set background color | |
void | grSetColor (int color) |
set foreground color | |
void | grSetMousePos (int x, int y) |
Unknown function. | |
Variables | |
static int | gr_bg_color |
current background color to use | |
static int | gr_cur_x |
static int | gr_cur_y |
static int | gr_fg_color |
current foreground color to use |
#define swap | ( | a, | |||
b | ) | (t = a, a = b, b = t) |
Definition at line 64 of file gr.c.
Referenced by ChangeStat(), GetBlockName(), GetMouse_fast(), idle_loop_secs(), PlaySequence(), and RD().
void gr_set_color_map | ( | unsigned char * | map | ) |
void grClearArea | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2 | |||
) |
void grDrawLine | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2 | |||
) |
void grDrawRect | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2, | |||
int | mode | |||
) |
int grGetMouseButtons | ( | void | ) |
Definition at line 23 of file gr.c.
Referenced by GetMouse_fast(), Introd(), PlaySequence(), and Replay().
int grGetMouseCurPos | ( | int * | xp, | |
int * | yp | |||
) |
int grGetMousePressedPos | ( | int * | xp, | |
int * | yp | |||
) |
int grGetPixel | ( | int | x, | |
int | y | |||
) | [inline] |
int grInitMouse | ( | void | ) |
void grLineTo | ( | int | x_arg, | |
int | y_arg | |||
) |
Definition at line 136 of file gr.c.
Referenced by BigArrowLt(), BigArrowRt(), BinT(), drawBspline(), DrawBudget(), DrawPastExp(), DrawRank(), DrawRD(), EndLt(), EndRt(), FlagSm(), grDrawLine(), grDrawRect(), grLineRel(), InBox(), OutBox(), RankMe(), SatDraw(), and TogBox().
void grMoveTo | ( | int | x, | |
int | y | |||
) |
Definition at line 121 of file gr.c.
Referenced by AI_Begin(), BarSkill(), Bd(), BigArrowLt(), BigArrowRt(), BinT(), ChangeStat(), DispNum(), drawBspline(), DrawBudget(), DrawLimbo(), DrawNText(), DrawPastExp(), DrawRank(), DrawRD(), DrawRevText(), DrawTrain(), DrawVText(), EndLt(), EndRt(), FailureMode(), FileText(), FlagSm(), FutSt2(), GetMinus(), grDrawLine(), grDrawRect(), grMoveRel(), InBox(), MissionName(), NextTurn(), OutBox(), Prefs(), PrintAt(), PrintAtKey(), PrintHist(), PrintOne(), RankMe(), SatDraw(), TogBox(), and TrainText().
void grPutPixel | ( | int | x, | |
int | y, | |||
int | color | |||
) | [inline] |
Definition at line 128 of file gr.c.
Referenced by Clock(), DispBig(), drawBspline(), DrawBudget(), DrawHardef(), DrawIStat(), DrawLED(), FlagSm(), Gl(), grLineTo(), HInfo(), IInfo(), MCGraph(), MisCheck(), PInfo(), and ShowHard().
void grSetBkColor | ( | int | color | ) |
set background color
color | the color code to use |
Definition at line 88 of file gr.c.
Referenced by RectFill().
void grSetColor | ( | int | color | ) |
set foreground color
color | the color code to use |
Definition at line 78 of file gr.c.
Referenced by Admin(), AI_Begin(), AsnCrew(), AstLevel(), AstNames(), AstStats(), BackIntel(), Bad(), BadFileType(), BarSkill(), Bd(), BigArrowLt(), BigArrowRt(), BinT(), ChangeStat(), ClearDisplay(), ClearRecord(), Credits(), CrewProb(), DamProb(), DispEight(), DispEight2(), DispHelp(), DisplAst(), DisplAstData(), DispLeft(), DispLoc(), DispVAB(), DispWts(), DNArrow(), DPrest(), Draw_Mis_Stats(), Draw_NewEnd(), DrawAstCheck(), DrawAstSel(), DrawBre(), drawBspline(), DrawBudget(), DrawFiles(), DrawFuture(), DrawHard(), DrawHardef(), DrawHPurc(), DrawIStat(), DrawLimbo(), DrawMisHist(), DrawNews(), DrawNText(), DrawPastExp(), DrawPosition(), DrawPrefs(), DrawProgs(), DrawRank(), DrawRD(), DrawReview(), DrawRevText(), DrawRush(), DrawSpaceport(), DrawStatistics(), DrawStats(), DrawTopNewsBox(), DrawTrain(), DrawViewing(), DrawVText(), Drec(), DurPri(), EditAst(), EndGame(), EndLt(), EndRt(), FailureMode(), FakeWin(), FileAccess(), FileText(), First(), FlagSm(), FltsTxt(), FutAstList(), FutBad(), FutFltsTxt(), FutSt2(), Future(), FutureCheck(), GetBlockName(), GetMinus(), GoNews(), GuyDisp(), Help(), HInfo(), HModel(), Hospital(), IInfo(), InBox(), Intel(), IOBox(), Limbo(), LimboText(), LMBld(), LMDraw(), LTArrow(), MCGraph(), MisAnn(), MisCheck(), MisOrd(), MisReq(), MisRev(), Missions(), Moon(), Museum(), NewAstList(), News(), NextTurn(), NFrame(), OnHand(), OutBox(), PadDraw(), PInfo(), PlanText(), PlayFirst(), PortText(), Prefs(), PrintAtKey(), PrintHist(), PrintOne(), Programs(), RankMe(), RDButTxt(), Records(), Request(), RequestX(), RetFile(), RTArrow(), Rush(), SatDraw(), SatText(), Second(), SetRush(), ShowAstrosHist(), ShowHard(), ShowPrest(), ShowRkt(), ShowSpHist(), ShowUnit(), ShowVA(), Special(), SpecialEnd(), SRPrintAt(), TogBox(), TrainText(), UPArrow(), and XSpec().
void grSetMousePos | ( | int | x, | |
int | y | |||
) |
Unknown function.
int gr_bg_color [static] |
current background color to use
Definition at line 49 of file gr.c.
Referenced by grClearArea(), and grSetBkColor().
int gr_cur_x [static] |
Definition at line 118 of file gr.c.
Referenced by grLineRel(), grLineTo(), grMoveRel(), and grMoveTo().
int gr_cur_y [static] |
Definition at line 118 of file gr.c.
Referenced by grLineRel(), grLineTo(), grMoveRel(), and grMoveTo().
int gr_fg_color [static] |
current foreground color to use
Definition at line 48 of file gr.c.
Referenced by grLineTo(), and grSetColor().