Mercurial > hg > Game > Cerium
view old/sdl_test/fb.h @ 1656:05adaf6f7afb draft
fix fft
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 02 Jul 2013 21:50:02 +0900 |
parents | bac3b0afc3e8 |
children |
line wrap: on
line source
#ifndef FB_H #define FB_H #define DEVICE_NAME "/dev/fb0" #define DIV_BYTE 8 #include <unistd.h> #include <stdio.h> #include <fcntl.h> #include <linux/fb.h> #include <linux/fs.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <stdlib.h> #include <iostream> struct fb_t { char *pixels; int size; int width; int height; int bpp; int fd; }; /* function prototype */ void send_current_error_msg(const char *ptr); void send_current_information(const char *ptr); fb_t get_fbdev_addr(void); #endif