Browse Source

new window code

David Rose 23 years ago
parent
commit
0de392dc87

+ 23 - 0
panda/metalibs/pandadx7/Sources.pp

@@ -0,0 +1,23 @@
+#define BUILD_DIRECTORY $[HAVE_DX]
+
+// DIR_TYPE "metalib" indicates we are building a shared library that
+// consists mostly of references to other shared libraries.  Under
+// Windows, this directly produces a DLL (as opposed to the regular
+// src libraries, which don't produce anything but a pile of OBJ files
+// under Windows).
+
+#define DIR_TYPE metalib
+#define BUILDING_DLL BUILDING_PANDADX
+
+#define COMPONENT_LIBS \
+    dxgsg7
+#define LOCAL_LIBS gsgbase display express
+#define OTHER_LIBS dtoolconfig dtool
+
+#begin metalib_target
+  #define TARGET pandadx7
+  #define SOURCES pandadx7.cxx  
+  #define WIN_SYS_LIBS \
+     ddraw.lib dxguid.lib winmm.lib \
+     kernel32.lib gdi32.lib user32.lib $[WIN_SYS_LIBS]
+#end metalib_target

+ 23 - 0
panda/metalibs/pandadx7/pandadx7.cxx

@@ -0,0 +1,23 @@
+// Filename: pandadx.cxx
+// Created by:  drose (15May00)
+// 
+////////////////////////////////////////////////////////////////////
+
+#include "pandadx.h"
+
+#include <config_dxgsg.h>
+#include <config_wdxdisplay.h>
+
+////////////////////////////////////////////////////////////////////
+//     Function: init_libpandadx
+//  Description: Initializes the library.  This must be called at
+//               least once before any of the functions or classes in
+//               this library can be used.  Normally it will be
+//               called by the static initializers and need not be
+//               called explicitly, but special cases exist.
+////////////////////////////////////////////////////////////////////
+void
+init_libpandadx() {
+  init_libdxgsg();
+  init_libwdxdisplay();
+}

+ 13 - 0
panda/metalibs/pandadx7/pandadx7.h

@@ -0,0 +1,13 @@
+// Filename: pandadx.h
+// Created by:  drose (2Jan01)
+// 
+////////////////////////////////////////////////////////////////////
+
+#ifndef PANDADX_H
+#define PANDADX_H
+
+#include <pandabase.h>
+
+EXPCL_PANDADX void init_libpandadx();
+
+#endif