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

anonymous enum
Enumerator
SCREEN_WIDTH 
SCREEN_HEIGHT 

Definition at line 24 of file plotter_sdl.c.

Function Documentation

◆ draw_points()

static void draw_points ( void  )
static

Definition at line 103 of file plotter_sdl.c.

◆ enter2D()

static void enter2D ( void  )
static

Definition at line 138 of file plotter_sdl.c.

◆ opengl_initialize()

static void opengl_initialize ( void  )
static

Definition at line 44 of file plotter_sdl.c.

◆ opengl_setup()

static void opengl_setup ( void  )
static

Definition at line 79 of file plotter_sdl.c.

◆ plotter_clear()

void plotter_clear ( void  )

Definition at line 199 of file plotter_sdl.c.

◆ plotter_initialize()

bool plotter_initialize ( int  data_size)

Definition at line 158 of file plotter_sdl.c.

◆ plotter_is_quit()

bool plotter_is_quit ( void  )

Definition at line 236 of file plotter_sdl.c.

◆ plotter_plot()

void plotter_plot ( float  x,
float  y 
)

Definition at line 224 of file plotter_sdl.c.

◆ plotter_set_color()

void plotter_set_color ( unsigned char  r,
unsigned  g,
unsigned  b 
)

Definition at line 215 of file plotter_sdl.c.

◆ plotter_swap()

void plotter_swap ( void  )

Definition at line 206 of file plotter_sdl.c.

◆ plotter_terminate()

void plotter_terminate ( void  )

Definition at line 193 of file plotter_sdl.c.

Variable Documentation

◆ draw_magnify_

double draw_magnify_ = 0.1
static

Definition at line 41 of file plotter_sdl.c.

◆ max_points_size_

size_t max_points_size_ = 0
static

Definition at line 39 of file plotter_sdl.c.

◆ points_

vector_t* points_ = NULL
static

Definition at line 38 of file plotter_sdl.c.

◆ points_size_

size_t points_size_ = 0
static

Definition at line 40 of file plotter_sdl.c.

◆ screen_

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 Mar 2 2022 01:08:11