add a struct for pixmap masks
This commit is contained in:
parent
cce970813f
commit
1f63f7b331
3 changed files with 14 additions and 0 deletions
3
render/mask.c
Normal file
3
render/mask.c
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#include "mask.h"
|
||||||
|
|
||||||
|
/* DO YOUR MAGIC MANNY WOOT \m/ */
|
9
render/mask.h
Normal file
9
render/mask.h
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#ifndef __mask_h
|
||||||
|
#define __mask_h
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
Pixmap mask;
|
||||||
|
guint w, h;
|
||||||
|
} pixmap_mask;
|
||||||
|
|
||||||
|
#endif
|
|
@ -6,6 +6,7 @@
|
||||||
#include <X11/Xft/Xft.h>
|
#include <X11/Xft/Xft.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include "color.h"
|
#include "color.h"
|
||||||
|
#include "mask.h"
|
||||||
|
|
||||||
#ifdef HAVE_STDINT_H
|
#ifdef HAVE_STDINT_H
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
|
@ -112,6 +113,7 @@ typedef struct TextureText {
|
||||||
|
|
||||||
typedef struct TextureMask {
|
typedef struct TextureMask {
|
||||||
color_rgb *color;
|
color_rgb *color;
|
||||||
|
pixmap_mask *mask;
|
||||||
} TextureMask;
|
} TextureMask;
|
||||||
|
|
||||||
typedef struct TextureRGBA {
|
typedef struct TextureRGBA {
|
||||||
|
|
Loading…
Reference in a new issue