dmm_display/common.h

23 lines
444 B
C++

#ifndef COMMON_H_
#define COMMON_H_
#include <string>
#include <vector>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#ifdef USE_HID
# include "DMM_HID.h"
#endif
#define UI_FPS 30
bool init_sdl(SDL_Window **window);
void quit_sdl(SDL_Window *window);
bool check_quit();
void calc_text(std::string& text, std::vector<Reading>& readings);
void draw_text(const std::string& text, SDL_Surface *surface, TTF_Font *font);
#endif // COMMON_H_