Classes | Enumerations | Functions | Variables
plotter_sdl.c File Reference

Plotter (SDL) More...

#include "plotter_sdl.h"
#include <SDL.h>
#include <SDL_opengl.h>
Include dependency graph for plotter_sdl.c:

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_tpoints_ = NULL
 
static size_t points_size_ = 0
 
static SDL_Surface * screen_ = NULL
 

Detailed Description

Plotter (SDL)

Author
Satofumi KAMIMURA
Id
plotter_sdl.c,v 540bc11f70c8 2011/05/08 23:04:49 satofumi
Todo:

glDrawElements() を使うように修正する

MAX_POINTS の 1081 の数をセンサからの情報で初期化する

Definition in file plotter_sdl.c.

Enumeration Type Documentation

anonymous enum
Enumerator
SCREEN_WIDTH 
SCREEN_HEIGHT 

Definition at line 24 of file plotter_sdl.c.

Function Documentation

static void draw_points ( void  )
static

Definition at line 103 of file plotter_sdl.c.

static void enter2D ( void  )
static

Definition at line 138 of file plotter_sdl.c.

static void opengl_initialize ( void  )
static

Definition at line 44 of file plotter_sdl.c.

static void opengl_setup ( void  )
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.

Variable Documentation

double draw_magnify_ = 0.1
static

Definition at line 41 of file plotter_sdl.c.

size_t max_points_size_ = 0
static

Definition at line 39 of file plotter_sdl.c.

vector_t* points_ = NULL
static

Definition at line 38 of file plotter_sdl.c.

size_t points_size_ = 0
static

Definition at line 40 of file plotter_sdl.c.

SDL_Surface* screen_ = NULL
static

Definition at line 37 of file plotter_sdl.c.



urg_c
Author(s): Satofumi Kamimura , Katsumi Kimoto, Adrian Boeing
autogenerated on Wed Jun 10 2020 03:48:10