diff --git a/panda/metalibs/pandadx7/Sources.pp b/panda/metalibs/pandadx7/Sources.pp new file mode 100644 index 0000000000..ffd0ccc6da --- /dev/null +++ b/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 diff --git a/panda/metalibs/pandadx7/pandadx7.cxx b/panda/metalibs/pandadx7/pandadx7.cxx new file mode 100644 index 0000000000..dc28e1c017 --- /dev/null +++ b/panda/metalibs/pandadx7/pandadx7.cxx @@ -0,0 +1,23 @@ +// Filename: pandadx.cxx +// Created by: drose (15May00) +// +//////////////////////////////////////////////////////////////////// + +#include "pandadx.h" + +#include +#include + +//////////////////////////////////////////////////////////////////// +// 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(); +} diff --git a/panda/metalibs/pandadx7/pandadx7.h b/panda/metalibs/pandadx7/pandadx7.h new file mode 100644 index 0000000000..d9ffe6377a --- /dev/null +++ b/panda/metalibs/pandadx7/pandadx7.h @@ -0,0 +1,13 @@ +// Filename: pandadx.h +// Created by: drose (2Jan01) +// +//////////////////////////////////////////////////////////////////// + +#ifndef PANDADX_H +#define PANDADX_H + +#include + +EXPCL_PANDADX void init_libpandadx(); + +#endif