functions for adding alphameric characters to graphics windows. More...
Go to the source code of this file.
Macros | |
| #define | NUMSEG 30 |
| The number of segments in a character display. More... | |
| #define | SEGL 5 |
| SEGL specifies the length of a vertical segment in pixels. More... | |
| #define | SEGSP 7 |
| SEGSP is the spacing of characters. More... | |
| #define | BOLD __bold=1; |
| BOLD means have bold text. More... | |
| #define | NOBOLD __bold=0; |
| NOBOLD means do not have bold text. More... | |
| #define | GXWINDOW 700 |
| The width in pixels of the window. More... | |
| #define | GYWINDOW 500 |
| The height of the window. More... | |
Functions | |
| void | graphics_segment_display (int s[], int x, int y, int r, int g, int b, float size) |
| void | graphics_print_character (int n, int x, int y, int r, int g, int b, float size) |
| void | graphics_print_string (char s[], int x, int y, int r, int g, int b, float size) |
| int | graphics_print_int (int n, int minNumDigits, int x, int y, int r, int g, int b, float size) |
| void | graphics_print_float (float n, int numDigits, int x, int y, int r, int g, int b, float size) |
Variables | |
| int | __bold |
| the variable used to store whether or not characters should be bold More... | |
functions for adding alphameric characters to graphics windows.
These are functions for adding alphameric characters (caps only) to graphics windows. The functions were extracted from a graphing package written by D.Miller Oct 2008. Character generation capabilities were extended from 7-segment to 16-segment and enhanced to include basic punctuation characters, plus size and bold-face options by C.Winton Oct 2008.
| #define BOLD __bold=1; |
BOLD means have bold text.
| #define GXWINDOW 700 |
The width in pixels of the window.
| #define GYWINDOW 500 |
The height of the window.
| #define NOBOLD __bold=0; |
NOBOLD means do not have bold text.
| #define NUMSEG 30 |
The number of segments in a character display.
| #define SEGL 5 |
SEGL specifies the length of a vertical segment in pixels.
| #define SEGSP 7 |
SEGSP is the spacing of characters.
|
extern |
the variable used to store whether or not characters should be bold