1v13d/src/FxEngine/texture.c

15 lines
319 B
C

#include "texture.h"
unsigned char const FE_textures[3][8]=
{
{0,0,0,0,0,0,0,0}, // full white
{255,255,255,255,255,255,255,255}, // full black
{255,193,161,145,137,133,131,255} // borders and diagonal
};
bool FE_get_pixel(int num,int x, int y)
{
x%=8;
y%=8;
return ((1<<(7-x)) & (FE_textures[num][y]));
}