FBlib.h | FBlib.h | |||
---|---|---|---|---|
skipping to change at line 57 | skipping to change at line 57 | |||
#define MMAP_ERR -3 | #define MMAP_ERR -3 | |||
/* Visuals */ | /* Visuals */ | |||
#define FB_VISUAL_MONO01 0 | #define FB_VISUAL_MONO01 0 | |||
#define FB_VISUAL_MONO10 1 | #define FB_VISUAL_MONO10 1 | |||
#define FB_VISUAL_TRUECOLOR 2 | #define FB_VISUAL_TRUECOLOR 2 | |||
#define FB_VISUAL_PSEUDOCOLOR 3 | #define FB_VISUAL_PSEUDOCOLOR 3 | |||
#define FB_VISUAL_DIRECTCOLOR 4 | #define FB_VISUAL_DIRECTCOLOR 4 | |||
#define FB_VISUAL_STATIC_PSEUDOCOLOR 5 | #define FB_VISUAL_STATIC_PSEUDOCOLOR 5 | |||
/* Rotations */ | ||||
#define FB_ROTATE_NONE 0 | ||||
#define FB_ROTATE_90 1 | ||||
#define FB_ROTATE_180 2 | ||||
#define FB_ROTATE_270 3 | ||||
typedef __u32 FB_pixel; | typedef __u32 FB_pixel; | |||
/*! If TRUE user is on the same VT as FBlib program */ | /*! If TRUE user is on the same VT as FBlib program */ | |||
extern int FB_visible; | extern int FB_visible; | |||
/*! This function must be called before any other call to other parts of FB lib, | /*! This function must be called before any other call to other parts of FB lib, | |||
* it makes some initialization and sets up the handler for a nice VT switc h. | * it makes some initialization and sets up the handler for a nice VT switc h. | |||
* \param dev The framebuffer device name (eg. "/dev/fb0") */ | * \param dev The framebuffer device name (eg. "/dev/fb0") */ | |||
int FB_initlib(char *dev); | int FB_initlib(char *dev); | |||
skipping to change at line 149 | skipping to change at line 155 | |||
* \retval FB_VISUAL_TRUECOLOR 2 True color | * \retval FB_VISUAL_TRUECOLOR 2 True color | |||
* \retval FB_VISUAL_PSEUDOCOLOR 3 Pseudo color (like atari ) | * \retval FB_VISUAL_PSEUDOCOLOR 3 Pseudo color (like atari ) | |||
* \retval FB_VISUAL_DIRECTCOLOR 4 Direct color | * \retval FB_VISUAL_DIRECTCOLOR 4 Direct color | |||
* \retval FB_VISUAL_STATIC_PSEUDOCOLOR 5 Pseudo color readonly | * \retval FB_VISUAL_STATIC_PSEUDOCOLOR 5 Pseudo color readonly | |||
*/ | */ | |||
int FB_getVisual(); | int FB_getVisual(); | |||
/*! Sets x and y respectively to the width and height of the visible screen */ | /*! Sets x and y respectively to the width and height of the visible screen */ | |||
void FB_getres(int *x, int *y); | void FB_getres(int *x, int *y); | |||
/*! Returns the width of the visible screen */ | ||||
int FB_getxres(); | ||||
/*! Returns the height of the visible screen */ | ||||
int FB_getyres(); | ||||
/*! Returns virtual screen width */ | /*! Returns virtual screen width */ | |||
int FB_getXVres(); | int FB_getXVres(); | |||
/*! Returns virtual screen height */ | /*! Returns virtual screen height */ | |||
int FB_getYVres(); | int FB_getYVres(); | |||
/*! Returns color depth the framebuffer is set to. It can be 16 or 32 */ | /*! Returns color depth the framebuffer is set to. It can be 16 or 32 */ | |||
int FB_getbpp(); | int FB_getbpp(); | |||
/*! Change the color depth of the framebuffer, this function can fail, | /*! Change the color depth of the framebuffer, this function can fail, | |||
skipping to change at line 203 | skipping to change at line 215 | |||
/*! Same as usula printf, extend to draw everywhere in the screen | /*! Same as usula printf, extend to draw everywhere in the screen | |||
* \param x,y Position of the upper left corner of the first caracter | * \param x,y Position of the upper left corner of the first caracter | |||
* \param col Color of the whole string | * \param col Color of the whole string | |||
* \param format Format string of the output, same format as printf, but on ly \r, | * \param format Format string of the output, same format as printf, but on ly \r, | |||
* \\n \%d \%x \%c \%g %% are supported | * \\n \%d \%x \%c \%g %% are supported | |||
* \param ... format variables | * \param ... format variables | |||
* \retval 0 Should return something usefull, but will return always 0 */ | * \retval 0 Should return something usefull, but will return always 0 */ | |||
int FB_printf(int x, int y, FB_pixel col, char *format, ...); | int FB_printf(int x, int y, FB_pixel col, char *format, ...); | |||
/* Sets the framebuffer rotation, this only affects following operations | ||||
* \param rotation one of FB_ROTATE_NONE,FB_ROTATE_90,FB_ROTATE_180,FB_ROTA | ||||
TE_270 | ||||
* \retval OK No error | ||||
* \retval PARAM_ERR You did not use one of the defined rotations */ | ||||
int FB_setrotation(int rotation); | ||||
/* Returns the current rotation state | ||||
* \retval one of FB_ROTATE_NONE,FB_ROTATE_90,FB_ROTATE_180,FB_ROTATE_270 * | ||||
/ | ||||
int FB_getrotation(); | ||||
#endif /* FBLIB_H */ | #endif /* FBLIB_H */ | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 24 lines changed or added | |||