view Renderer/Engine/fb.h @ 981:a193a851b5e3

add double buffering frame device
author root@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 30 Sep 2010 23:54:08 +0900
parents 3d19bc6424d0
children 0b6f8c82625a
line wrap: on
line source

#ifndef FB_H
#define FB_H

#if defined(__linux__)

#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>
#include "types.h"
using namespace std;


/* function prototype */
void send_current_error_msg(const char *ptr);
void send_current_information(const char *ptr);

#endif

typedef struct screen_info {
	int xres,yres,vbpp,line_len;
	uint32_t *fbptr[2];
} ScreenInfo , *ScreenInfoPtr;


extern ScreenInfo get_fbdev_addr(void);

#endif