view Renderer/Engine/fb.h @ 895:bed529c55eda

add alignment of classes in SPU width and height are automatically set in frame buffer API
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 16 Jul 2010 17:23:49 +0900
parents 735f76483bb2
children 3d19bc6424d0
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>
using namespace std;


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

/*
    Don't put real function in a header...
 */
typedef struct screen_info {
	int xres,yres,vbpp,line_len;
	char *fbptr;
} ScreenInfo , *ScreenInfoPtr;



#endif

extern ScreenInfo get_fbdev_addr(void);

#endif