#define __render_h
#define _XFT_NO_COMPAT_ /* no Xft 1 API */
+#include <X11/Xlib.h> /* some platforms dont include this as needed for Xft */
#include <X11/Xft/Xft.h>
#include <X11/Xlib.h>
#include <glib.h>
RrAppearance *parent;
gint parentx;
gint parenty;
- RrPixel32 *RrPixel_data;
+ RrPixel32 *pixel_data;
};
struct _RrTextureText {
gint w, h;
};
-#if (G_BYTE_ORDER == G_BIG_ENDIAN)
-#define RrDefaultRedOffset 0
-#define RrDefaultGreenOffset 8
-#define RrDefaultBlueOffset 16
-#define RrDefaultAlphaOffset 24
-#define RrEndian MSBFirst
-#else
+/* these are the same on all endian machines because it seems to be dependant
+ on the endianness of the gfx card, not the cpu. */
#define RrDefaultAlphaOffset 24
#define RrDefaultRedOffset 16
#define RrDefaultGreenOffset 8
#define RrDefaultBlueOffset 0
-#define RrEndian LSBFirst
-#endif /* G_BYTE_ORDER == G_BIG_ENDIAN */
RrInstance* RrInstanceNew (Display *display, gint screen);
void RrInstanceFree (RrInstance *inst);
RrColor *RrColorParse (const RrInstance *inst, gchar *colorname);
void RrColorFree (RrColor *in);
+gint RrColorRed (const RrColor *c);
+gint RrColorGreen (const RrColor *c);
+gint RrColorBlue (const RrColor *c);
+gulong RrColorPixel (const RrColor *c);
+
RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex);
RrAppearance *RrAppearanceCopy (RrAppearance *a);
void RrAppearanceFree (RrAppearance *a);