Add alpha transparency ability for blocks

This commit is contained in:
Sfan5
2014-04-03 20:32:48 +02:00
parent 6897ef85c7
commit 84d46ab8eb
7 changed files with 115 additions and 36 deletions

View File

@ -11,11 +11,13 @@
#define PIXELATTRIBUTES_H_ADZ35GYF
#include <limits>
#include <stdint.h>
#include "config.h"
struct PixelAttribute {
PixelAttribute(): height(std::numeric_limits<int>::min()) {};
PixelAttribute(): height(std::numeric_limits<int>::min()), thicken(0) {};
int height;
uint8_t thicken;
inline bool valid_height() {
return height != std::numeric_limits<int>::min();
}