summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-13 21:25:06 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-13 21:25:06 (GMT)
commitbbe5aabf4f85c0b83da54fb8f55b4c509c323609 (patch)
tree459024e3843f519fc530c39827242e774b360df1 /includes
parent7a62500eb31e04b36fb463a74109466bec6ee3bf (diff)
downloadpowder-bbe5aabf4f85c0b83da54fb8f55b4c509c323609.zip
powder-bbe5aabf4f85c0b83da54fb8f55b4c509c323609.tar.gz
Allow use of OpenGL enabled surface for future use
Diffstat (limited to 'includes')
-rw-r--r--includes/graphics.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/graphics.h b/includes/graphics.h
index 8061e7c..3b7672f 100644
--- a/includes/graphics.h
+++ b/includes/graphics.h
@@ -26,6 +26,12 @@
#define PIXR(x) (((x)>>8)&0xFF)
#define PIXG(x) (((x)>>16)&0xFF)
#define PIXB(x) (((x)>>24))
+#elif defined(PIX32RGBA)
+#define PIXPACK(x) ((((x)>>16)&0x0000FF)|((x)&0x00FF00)|(((x)<<16)&0xFF0000))
+#define PIXRGB(r,g,b) (((b)<<16)|((g)<<8)|((r)))// (((b)<<16)|((g)<<8)|(r))
+#define PIXR(x) ((x)&0xFF)
+#define PIXG(x) (((x)>>8)&0xFF)
+#define PIXB(x) ((x)>>16)
#else
#define PIXPACK(x) (x)
#define PIXRGB(r,g,b) (((r)<<16)|((g)<<8)|(b))