summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-18 20:56:32 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-18 20:56:32 (GMT)
commit8052c4bfdfb292c1a203945fb05db9d4dbe729bf (patch)
tree4ccae840869e9f6450ced2ebb460f62880bf8a79 /includes
parent44a0008d4e8f80fce9697bbde09193e837bc0072 (diff)
downloadpowder-8052c4bfdfb292c1a203945fb05db9d4dbe729bf.zip
powder-8052c4bfdfb292c1a203945fb05db9d4dbe729bf.tar.gz
Some testing with OpenGL
Diffstat (limited to 'includes')
-rw-r--r--includes/graphics.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/includes/graphics.h b/includes/graphics.h
index 3b7672f..8567226 100644
--- a/includes/graphics.h
+++ b/includes/graphics.h
@@ -26,12 +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)
+#elif defined(PIX32OGL)
+#define PIXPACK(x) (0xFF000000|((x)&0xFFFFFF))
+#define PIXRGB(r,g,b) (0xFF000000|((r)<<16)|((g)<<8)|((b)))// (((b)<<16)|((g)<<8)|(r))
+#define PIXR(x) (((x)>>16)&0xFF)
#define PIXG(x) (((x)>>8)&0xFF)
-#define PIXB(x) ((x)>>16)
+#define PIXB(x) ((x)&0xFF)
#else
#define PIXPACK(x) (x)
#define PIXRGB(r,g,b) (((r)<<16)|((g)<<8)|(b))
@@ -183,10 +183,9 @@ int sdl_open(void);
int draw_debug_info(pixel* vid, int lm, int lx, int ly, int cx, int cy, int line_x, int line_y);
-#ifdef OpenGL
-void Enable2D ();
-void RenderScene ();
-void ClearScreen();
+#ifdef OGLR
+void clearScreen(float alpha);
+void ogl_blit(int x, int y, int w, int h, pixel *src, int pitch, int scale);
#endif
#endif