aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver/d_draw.h
diff options
context:
space:
mode:
authorJonathan Gray2003-07-28 01:47:41 +0000
committerJonathan Gray2003-07-28 01:47:41 +0000
commitdc6aa9912c73e1e03c32b6b214c5fbc46aa1eb57 (patch)
tree5c6bb0d5236aa9d5102d1cd7d6821fd3848086f8 /sword2/driver/d_draw.h
parentf020d28b5e9297f93d5bedae62885b380c23f517 (diff)
downloadscummvm-rg350-dc6aa9912c73e1e03c32b6b214c5fbc46aa1eb57.tar.gz
scummvm-rg350-dc6aa9912c73e1e03c32b6b214c5fbc46aa1eb57.tar.bz2
scummvm-rg350-dc6aa9912c73e1e03c32b6b214c5fbc46aa1eb57.zip
bs2 driver
svn-id: r9212
Diffstat (limited to 'sword2/driver/d_draw.h')
-rw-r--r--sword2/driver/d_draw.h96
1 files changed, 96 insertions, 0 deletions
diff --git a/sword2/driver/d_draw.h b/sword2/driver/d_draw.h
new file mode 100644
index 0000000000..0c4302bfaa
--- /dev/null
+++ b/sword2/driver/d_draw.h
@@ -0,0 +1,96 @@
+/* Copyright (C) 1994-2003 Revolution Software Ltd
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Header$
+ */
+
+//=============================================================================
+//
+// Filename : d_draw.h
+// Created : 22nd August 1996
+// By : P.R.Porter
+//
+// Version Date By Description
+// ------- --------- --- -----------------------------------------------
+// 1.0 16-Sep-96 PRP Interface to the DirectDraw driver functions
+// and data.
+//
+// 1.1 19-Sep-96 PRP Increased scope of directDraw data, such as
+// the back buffer object, so that mouse.c can
+// have access to the screen.
+//
+// 1.2 25-Sep-96 PRP Made scrollx and scrolly available to all
+// driver code.
+//
+// 1.3 26-Sep-96 PRP Moved scroll stuff to render.h for clarity.
+//
+// 1.4 07-Nov-96 PRP Made bFullScreen available to all driver code.
+//
+// 1.5 18-Nov-96 PRP Added reference to lpDD2 object.
+//
+// 1.6 24-Jan-97 PRP Added hardware capability bits and defines.
+//
+// 1.7 06-Mar-97 PRP Changed capability bits, and changed the
+// direct draw error reporting call. Added
+// function to grab screen shot.
+//
+// 1.8 16-Jun-97 PSJ Made globall externable to c++.
+//
+// 1.9 27-Jun-97 PRP Moving the definition of GrabScreenShot to
+// driver96.h for external access.
+//
+//
+// Summary : This include file defines links to all data which is
+// defined in the d_draw.c module, but can be accessed by
+// other parts of the driver96 library.
+//
+//
+//=============================================================================
+
+
+#ifndef D_DRAW_H
+#define D_DRAW_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+//#include "ddraw.h"
+
+// Bits defining hardware and emulation capabilities.
+#define RDCAPS_BLTSTRETCH 1
+#define RDCAPS_SRCBLTCKEY 2
+#define DirectDrawError(f, g) FatalDirectDrawError(f, g, __FILE__, __LINE__)
+
+
+extern uint8 *lpPalette; // palette
+extern uint8 *lpBackBuffer; // back surface
+extern uint8 *lpPrimarySurface; // DirectDraw front buffer.
+extern uint8 *lpDD2; // DirectDraw2 object
+extern BOOL bFullScreen; // Defines whether the app is running in full screen mode or not.
+//extern DDCOLORKEY blackColorKey; // transparent pixel for color key blitting.
+extern uint8 blackColorKey; // transparent pixel for color key blitting.
+extern int32 dxHalCaps; // Hardware capabilities.
+extern int32 dxHelCaps; // Emulation capabilities.
+
+extern void FatalDirectDrawError(char *str, int32 dderr, char *file, int32 line);
+extern void RestoreSurfaces(void); // Restores direct draw surfaces.
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif