Project

General

Profile

Revision 183

can reduce letter size; working on increasing

View differences:

graph.h
1 1
#ifndef GRAPH_H_INCLUDED
2 2
#define GRAPH_H_INCLUDED
3 3

  
4
#include "graph_macros.h"
5

  
4 6
/// MACROS
5
//#define GET_ALP(n)          (0xFF & ((n) >> 24))
7
#define GET_ALP(n)          (0xFF & ((n) >> 24))
6 8
#define GET_RED(n)          (0xFF & ((n) >> 16))
7 9
#define GET_GRE(n)          (0xFF & ((n) >>  8))
8 10
#define GET_BLU(n)          (0xFF & (n      ))
9
//#define SET_ALP(n)          (((n)&0xFF) << 24)
11
#define GET_COLOR(n)        (0xFFFFFF & (n))
12
#define SET_ALP(n)          (((n)&0xFF) << 24)
10 13
#define SET_RED(n)          (((n)&0xFF) << 16)
11 14
#define SET_GRE(n)          (((n)&0xFF) <<  8)
12 15
#define SET_BLU(n)          (((n)&0xFF)      )
......
23 26
int (graph_cleanup)(void);
24 27

  
25 28
/// PIXEL DRAWING
26
int (graph_set_pixel)      (uint16_t x, uint16_t y, uint32_t color);
27
int (graph_set_pixel_alpha)(uint16_t x, uint16_t y, uint32_t color, uint8_t alpha);
29
int (graph_set_pixel)             (uint16_t x, uint16_t y, uint32_t color);
30
int (graph_set_pixel_buffer)      (uint16_t x, uint16_t y, uint32_t color, uint8_t *buf, uint16_t W, uint16_t H);
31
int (graph_set_pixel_alpha_buffer)(uint16_t x, uint16_t y, uint8_t alpha, uint8_t *alp_buf, uint16_t W, uint16_t H);
32
int (graph_set_pixel_alpha)       (uint16_t x, uint16_t y, uint32_t color, uint8_t alpha);
28 33

  
29 34
/// SCREEN
30 35
int (graph_clear_screen)(void);

Also available in: Unified diff