2019-07-24 17:15:09 +02:00
|
|
|
#include "texture.h"
|
|
|
|
|
|
|
|
static unsigned char const blanc[8]={0,0,0,0,0,0,0,0};
|
|
|
|
static unsigned char const noir[8]={255,255,255,255,255,255,255,255};
|
|
|
|
|
|
|
|
// textures address
|
|
|
|
unsigned char const * const FE_textures[2]={blanc,noir};
|
|
|
|
|
|
|
|
bool FE_get_pixel(int texture_num,int x, int y)
|
|
|
|
{
|
|
|
|
unsigned char* texture=FE_textures[texture_num];
|
|
|
|
return (1<<(7-x)&texture[y]);
|
|
|
|
}
|