new window code

This commit is contained in:
David Rose 2003-01-09 22:28:18 +00:00
parent ba6dd38df7
commit 0de392dc87
3 changed files with 59 additions and 0 deletions

View File

@ -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

View File

@ -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();
}

View File

@ -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