2 * DirectX File private interfaces (D3DXOF.DLL)
4 * Copyright 2004, 2008 Christian Costa
6 * This file contains the (internal) driver registration functions,
7 * driver enumeration APIs and DirectDraw creation functions.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #ifndef __D3DXOF_PRIVATE_INCLUDED__
25 #define __D3DXOF_PRIVATE_INCLUDED__
36 #define MAX_NAME_LEN 32
37 #define MAX_ARRAY_DIM 1
38 #define MAX_MEMBERS 50
40 #define MAX_TEMPLATES 200
41 #define MAX_OBJECTS 200
42 #define MAX_SUBOBJECTS 20
47 char name
[MAX_NAME_LEN
];
49 BOOL dim_fixed
[MAX_ARRAY_DIM
]; /* fixed or variable */
50 ULONG dim_value
[MAX_ARRAY_DIM
]; /* fixed value or member index */
54 char name
[MAX_NAME_LEN
];
58 char childs
[MAX_CHILDS
][MAX_NAME_LEN
];
60 member members
[MAX_MEMBERS
];
64 char name
[MAX_NAME_LEN
];
70 char name
[MAX_NAME_LEN
];
76 xobject_member members
[MAX_MEMBERS
];
78 struct _xobject
* childs
[MAX_CHILDS
];
81 typedef struct _xobject xobject
;
87 xtemplate xtemplates
[MAX_TEMPLATES
];
91 IDirectXFileBinary lpVtbl
;
93 } IDirectXFileBinaryImpl
;
96 IDirectXFileData lpVtbl
;
100 } IDirectXFileDataImpl
;
103 IDirectXFileDataReference lpVtbl
;
105 } IDirectXFileDataReferenceImpl
;
108 IDirectXFileObject lpVtbl
;
110 } IDirectXFileObjectImpl
;
113 /* Buffer to parse */
124 IDirectXFileImpl
* pdxf
;
126 xtemplate
* pxt
[MAX_SUBOBJECTS
];
131 IDirectXFileEnumObject lpVtbl
;
133 DXFILELOADOPTIONS source
;
136 IDirectXFileImpl
* pDirectXFile
;
138 xobject xobjects
[MAX_OBJECTS
][MAX_SUBOBJECTS
];
139 } IDirectXFileEnumObjectImpl
;
142 IDirectXFileSaveObject lpVtbl
;
144 } IDirectXFileSaveObjectImpl
;
146 HRESULT
IDirectXFileImpl_Create(IUnknown
*pUnkOuter
, LPVOID
*ppObj
);
147 HRESULT
IDirectXFileBinaryImpl_Create(IDirectXFileBinaryImpl
** ppObj
);
148 HRESULT
IDirectXFileDataImpl_Create(IDirectXFileDataImpl
** ppObj
);
149 HRESULT
IDirectXFileDataReferenceImpl_Create(IDirectXFileDataReferenceImpl
** ppObj
);
150 HRESULT
IDirectXFileEnumObjectImpl_Create(IDirectXFileEnumObjectImpl
** ppObj
);
151 HRESULT
IDirectXFileFileObjectImpl_Create(IDirectXFileObjectImpl
** ppObj
);
152 HRESULT
IDirectXFileFileSaveObjectImpl_Create(IDirectXFileSaveObjectImpl
** ppObj
);
154 #endif /* __D3DXOF_PRIVATE_INCLUDED__ */