Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

pandatool/src/xfile/xFileTemplates.h

Go to the documentation of this file.
00001 // Filename: xFileTemplates.h
00002 // Created by:  drose (21Jun01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef XFILETEMPLATES_H
00020 #define XFILETEMPLATES_H
00021 
00022 #include "pandatoolbase.h"
00023 
00024 #define WIN32_LEAN_AND_MEAN
00025 #include <windows.h>
00026 #include <d3d.h>
00027 #include <dxfile.h>
00028 #include <rmxfguid.h>
00029 #undef WIN32_LEAN_AND_MEAN
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //
00033 // This file exists to get an external handle to the table defined in
00034 // the Windows header file rmxftmpl.h.  Since the table is actually
00035 // defined in the Windows header file, we can't include that header
00036 // file in multiple .cxx files, or we'll define the table multiple
00037 // times.
00038 //
00039 // Unfortunately, the length of the table is defined within that
00040 // header file with a #define, so there's no way to extern *that*.
00041 // Instead, we define our own variable that references the length.
00042 //
00043 ////////////////////////////////////////////////////////////////////
00044 
00045 extern unsigned char D3DRM_XTEMPLATES[];
00046 extern const int d3drm_xtemplates_length;
00047 
00048 // For some reason, this definition does not appear in rmxfguid.h. 
00049 /* {3D82AB43-62DA-11cf-AB39-0020AF71E433} */
00050 DEFINE_GUID(mydef_TID_D3DRMHeader,
00051 0x3d82ab43, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33);
00052 
00053 #endif
00054 

Generated on Fri May 2 03:21:54 2003 for Panda-Tool by doxygen1.3