Plotter (SDL) More...

Go to the source code of this file.
| Classes | |
| struct | vector_t | 
| Enumerations | |
| enum | { SCREEN_WIDTH = 640, SCREEN_HEIGHT = 480 } | 
| Functions | |
| static void | draw_points (void) | 
| static void | enter2D (void) | 
| static void | opengl_initialize (void) | 
| static void | opengl_setup (void) | 
| void | plotter_clear (void) | 
| bool | plotter_initialize (int data_size) | 
| bool | plotter_is_quit (void) | 
| void | plotter_plot (float x, float y) | 
| void | plotter_set_color (unsigned char r, unsigned g, unsigned b) | 
| void | plotter_swap (void) | 
| void | plotter_terminate (void) | 
| Variables | |
| static double | draw_magnify_ = 0.1 | 
| static size_t | max_points_size_ = 0 | 
| static vector_t * | points_ = NULL | 
| static size_t | points_size_ = 0 | 
| static SDL_Surface * | screen_ = NULL | 
Plotter (SDL)
glDrawElements() を使うように修正する
MAX_POINTS の 1081 の数をセンサからの情報で初期化する
Definition in file plotter_sdl.c.
| anonymous enum | 
| Enumerator | |
|---|---|
| SCREEN_WIDTH | |
| SCREEN_HEIGHT | |
Definition at line 24 of file plotter_sdl.c.
| 
 | static | 
Definition at line 103 of file plotter_sdl.c.
| 
 | static | 
Definition at line 138 of file plotter_sdl.c.
| 
 | static | 
Definition at line 44 of file plotter_sdl.c.
| 
 | static | 
Definition at line 79 of file plotter_sdl.c.
| void plotter_clear | ( | void | ) | 
Definition at line 199 of file plotter_sdl.c.
| bool plotter_initialize | ( | int | data_size | ) | 
Definition at line 158 of file plotter_sdl.c.
| bool plotter_is_quit | ( | void | ) | 
Definition at line 236 of file plotter_sdl.c.
| void plotter_plot | ( | float | x, | 
| float | y | ||
| ) | 
Definition at line 224 of file plotter_sdl.c.
| void plotter_set_color | ( | unsigned char | r, | 
| unsigned | g, | ||
| unsigned | b | ||
| ) | 
Definition at line 215 of file plotter_sdl.c.
| void plotter_swap | ( | void | ) | 
Definition at line 206 of file plotter_sdl.c.
| void plotter_terminate | ( | void | ) | 
Definition at line 193 of file plotter_sdl.c.
| 
 | static | 
Definition at line 41 of file plotter_sdl.c.
| 
 | static | 
Definition at line 39 of file plotter_sdl.c.
| 
 | static | 
Definition at line 38 of file plotter_sdl.c.
| 
 | static | 
Definition at line 40 of file plotter_sdl.c.
| 
 | static | 
Definition at line 37 of file plotter_sdl.c.