move pixmap_mask typedef
add stub for draw_mask
This commit is contained in:
parent
b824e6ad8e
commit
57314ce522
3 changed files with 10 additions and 8 deletions
|
@ -16,5 +16,6 @@ void pixmap_mask_free(pixmap_mask *m)
|
||||||
g_free(m);
|
g_free(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void mask_draw(pixmap_mask *p, TextureMask *m)
|
||||||
/* DO YOUR MAGIC MANNY WOOT \m/ */
|
{
|
||||||
|
}
|
||||||
|
|
|
@ -3,13 +3,10 @@
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
#include "render.h"
|
||||||
typedef struct {
|
|
||||||
Pixmap mask;
|
|
||||||
guint w, h;
|
|
||||||
} pixmap_mask;
|
|
||||||
|
|
||||||
pixmap_mask *pixmap_mask_new(int w, int h, char *data);
|
pixmap_mask *pixmap_mask_new(int w, int h, char *data);
|
||||||
void pixmap_mask_free(pixmap_mask *m);
|
void pixmap_mask_free(pixmap_mask *m);
|
||||||
|
void mask_draw(pixmap_mask *p, TextureMask *m);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#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>
|
||||||
|
@ -111,6 +110,11 @@ typedef struct TextureText {
|
||||||
char *string;
|
char *string;
|
||||||
} TextureText;
|
} TextureText;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
Pixmap mask;
|
||||||
|
guint w, h;
|
||||||
|
} pixmap_mask;
|
||||||
|
|
||||||
typedef struct TextureMask {
|
typedef struct TextureMask {
|
||||||
color_rgb *color;
|
color_rgb *color;
|
||||||
pixmap_mask *mask;
|
pixmap_mask *mask;
|
||||||
|
|
Loading…
Reference in a new issue