From eb9fbd3e2d3b6f72ad3daa6c63d8a122871a57d5 Mon Sep 17 00:00:00 2001 From: theoddone33 Date: Mon, 27 May 2002 22:32:02 +0000 Subject: [PATCH] throw all d3d stuff at opengl --- include/unix.h | 9 +++++++++ src/graphics/gropengl.cpp | 21 +++++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/include/unix.h b/include/unix.h index b1b9093..1e69a37 100644 --- a/include/unix.h +++ b/include/unix.h @@ -96,4 +96,13 @@ extern int MulDiv (int, int, int); #define WSAECONNABORTED ECONNABORTED #define WSAESHUTDOWN ESHUTDOWN +// Testing - DDOI +#define gr_d3d_bitmap gr_opengl_bitmap +#define gr_d3d_init gr_opengl_init +#define gr_d3d_activate gr_opengl_activate +#define gr_d3d_cleanup gr_opengl_cleanup +#define gr_d3d_bitmap_ex gr_opengl_bitmap_ex +#define gr_d3d_preload_init gr_opengl_preload_init +//#define gr_d3d_FOO gr_opengl_FOO + #endif diff --git a/src/graphics/gropengl.cpp b/src/graphics/gropengl.cpp index ce89a38..38c4dea 100644 --- a/src/graphics/gropengl.cpp +++ b/src/graphics/gropengl.cpp @@ -7,8 +7,11 @@ * Code that uses the OpenGL graphics library * * $Log$ - * Revision 1.1 2002/05/03 03:28:09 root - * Initial revision + * Revision 1.2 2002/05/27 22:32:02 theoddone33 + * throw all d3d stuff at opengl + * + * Revision 1.1.1.1 2002/05/03 03:28:09 root + * Initial import. * * * 10 7/14/99 9:42a Dave @@ -117,6 +120,20 @@ #include "line.h" static int Inited = 0; +#ifdef PLAT_UNIX +// Throw in some dummy functions - DDOI +void gr_opengl_preload_init() +{ +} + +void gr_d3d_preload(int x, int y) +{ +} + +void gr_opengl_activate( int b) +{ +} +#endif void gr_opengl_pixel(int x, int y) { -- 2.39.2