99 iface->lpVtbl->AddRef(iface);
115 TRACE(
"%p increasing refcount to %u.\n", file_data, refcount);
125 TRACE(
"%p decreasing refcount to %u.\n", file_data, refcount);
146 FIXME(
"iface %p, enum_object %p stub!\n", iface, enum_object);
187 TRACE(
"iface %p, guid %p.\n", iface,
guid);
221 TRACE(
"iface %p.\n", iface);
231 const GUID *dxfile_guid;
234 TRACE(
"iface %p, guid %p.\n", iface,
guid);
240 *
guid = *dxfile_guid;
249 TRACE(
"iface %p.\n", iface);
272 TRACE(
"iface %p, id %#lx, object %p.\n", iface,
id,
object);
278 (*object)->lpVtbl->AddRef(*
object);
302 IDirectXFileObject *data_object;
303 unsigned int children_array_size = 0;
306 TRACE(
"dxfile_object %p, ret_iface %p.\n", dxfile_object, ret_iface);
332 object->reference =
TRUE;
336 FIXME(
"Don't know what to do with binary object\n");
344 if (
object->nb_children >= children_array_size)
346 ID3DXFileData **new_children;
350 children_array_size *= 2;
352 sizeof(*
object->children) * children_array_size);
356 children_array_size = 4;
364 object->children = new_children;
367 IUnknown_Release(data_object);
370 object->nb_children++;
374 (&
object->ID3DXFileData_iface)->lpVtbl->Release(&
object->ID3DXFileData_iface);
379 ID3DXFileData **new_children;
384 object->children = new_children;
389 *ret_iface = &
object->ID3DXFileData_iface;
401 iface->lpVtbl->AddRef(iface);
417 TRACE(
"%p increasing refcount to %u.\n", file_enum, refcount);
427 TRACE(
"%p decreasing refcount to %u.\n", file_enum, refcount);
447 FIXME(
"iface %p, file %p stub!\n", iface,
file);
470 TRACE(
"iface %p, id %#lx, object %p.\n", iface,
id,
object);
476 (*object)->lpVtbl->AddRef(*
object);
490 const char *
name, ID3DXFileData **
object)
516 iface->lpVtbl->AddRef(iface);
532 TRACE(
"%p increasing refcount to %u.\n",
file, refcount);
542 TRACE(
"%p decreasing refcount to %u.\n",
file, refcount);
558 IDirectXFileEnumObject *dxfile_enum_object;
563 IDirectXFileData *data_object;
564 unsigned children_array_size = 0;
567 TRACE(
"iface %p, source %p, options %#x, enum_object %p.\n", iface,
source,
options, enum_object);
576 dxfile_source = (
void*)
source;
586 dxfile_source = &dxfile_resource;
595 dxfile_source = &dxfile_memory;
622 if (
object->nb_children >= children_array_size)
624 ID3DXFileData **new_children;
628 children_array_size *= 2;
630 sizeof(*
object->children) * children_array_size);
634 children_array_size = 4;
642 object->children = new_children;
646 IUnknown_Release(data_object);
649 object->nb_children++;
653 ID3DXFileData **new_children;
658 object->children = new_children;
664 WARN(
"Cannot get all top level data objects\n");
668 *enum_object = &
object->ID3DXFileEnumObject_iface;
676 FIXME(
"iface %p, data %p, options %#x, format %#x, save_object %p stub!\n",
701 FIXME(
"iface %p, enum_object %p stub!\n", iface, enum_object);
722 TRACE(
"d3dxfile %p.\n", d3dxfile);
745 *d3dxfile = &
object->ID3DXFile_iface;
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define D3DXF_FILELOAD_FROMFILE
#define D3DXFERR_BADFILEVERSION
DWORD D3DXF_FILESAVEOPTIONS
#define D3DXFERR_BADFILEFLOATSIZE
#define D3DXF_FILELOAD_FROMRESOURCE
DWORD D3DXF_FILELOADOPTIONS
#define D3DXF_FILELOAD_FROMMEMORY
#define D3DXFERR_PARSEERROR
#define D3DXFERR_BADFILETYPE
#define D3DXFERR_BADVALUE
static HRESULT WINAPI d3dx9_file_data_GetEnum(ID3DXFileData *iface, ID3DXFileEnumObject **enum_object)
static HRESULT WINAPI d3dx9_file_data_GetChild(ID3DXFileData *iface, SIZE_T id, ID3DXFileData **object)
static HRESULT WINAPI d3dx9_file_enum_object_GetDataObjectByName(ID3DXFileEnumObject *iface, const char *name, ID3DXFileData **object)
static struct d3dx9_file_enum_object * impl_from_ID3DXFileEnumObject(ID3DXFileEnumObject *iface)
static HRESULT WINAPI d3dx9_file_data_Lock(ID3DXFileData *iface, SIZE_T *size, const void **data)
static HRESULT WINAPI d3dx9_file_CreateEnumObject(ID3DXFile *iface, const void *source, D3DXF_FILELOADOPTIONS options, ID3DXFileEnumObject **enum_object)
static HRESULT WINAPI d3dx9_file_data_GetType(ID3DXFileData *iface, GUID *guid)
static HRESULT WINAPI d3dx9_file_data_Unlock(ID3DXFileData *iface)
static HRESULT WINAPI d3dx9_file_CreateSaveObject(ID3DXFile *iface, const void *data, D3DXF_FILESAVEOPTIONS options, D3DXF_FILEFORMAT format, ID3DXFileSaveObject **save_object)
static HRESULT WINAPI d3dx9_file_RegisterTemplates(ID3DXFile *iface, const void *data, SIZE_T size)
static HRESULT WINAPI d3dx9_file_enum_object_GetChildren(ID3DXFileEnumObject *iface, SIZE_T *children)
static HRESULT WINAPI d3dx9_file_QueryInterface(ID3DXFile *iface, REFIID riid, void **out)
static ULONG WINAPI d3dx9_file_data_AddRef(ID3DXFileData *iface)
static HRESULT WINAPI d3dx9_file_data_GetId(ID3DXFileData *iface, GUID *guid)
static HRESULT WINAPI d3dx9_file_RegisterEnumTemplates(ID3DXFile *iface, ID3DXFileEnumObject *enum_object)
static struct d3dx9_file_data * impl_from_ID3DXFileData(ID3DXFileData *iface)
static HRESULT WINAPI d3dx9_file_data_GetChildren(ID3DXFileData *iface, SIZE_T *children)
static ULONG WINAPI d3dx9_file_Release(ID3DXFile *iface)
static HRESULT WINAPI d3dx9_file_enum_object_GetChild(ID3DXFileEnumObject *iface, SIZE_T id, ID3DXFileData **object)
static const ID3DXFileVtbl d3dx9_file_vtbl
static HRESULT error_dxfile_to_d3dxfile(HRESULT error)
static HRESULT WINAPI d3dx9_file_data_QueryInterface(ID3DXFileData *iface, REFIID riid, void **out)
static const ID3DXFileEnumObjectVtbl d3dx9_file_enum_object_vtbl
static HRESULT WINAPI d3dx9_file_enum_object_QueryInterface(ID3DXFileEnumObject *iface, REFIID riid, void **out)
static HRESULT d3dx9_file_data_create(IDirectXFileObject *dxfile_object, ID3DXFileData **ret_iface)
static const ID3DXFileDataVtbl d3dx9_file_data_vtbl
static ULONG WINAPI d3dx9_file_enum_object_Release(ID3DXFileEnumObject *iface)
static ULONG WINAPI d3dx9_file_enum_object_AddRef(ID3DXFileEnumObject *iface)
static ULONG WINAPI d3dx9_file_data_Release(ID3DXFileData *iface)
HRESULT WINAPI D3DXFileCreate(ID3DXFile **d3dxfile)
static HRESULT WINAPI d3dx9_file_enum_object_GetFile(ID3DXFileEnumObject *iface, ID3DXFile **file)
static HRESULT WINAPI d3dx9_file_enum_object_GetDataObjectById(ID3DXFileEnumObject *iface, REFGUID guid, ID3DXFileData **object)
static HRESULT WINAPI d3dx9_file_data_GetName(ID3DXFileData *iface, char *name, SIZE_T *size)
static ULONG WINAPI d3dx9_file_AddRef(ID3DXFile *iface)
static BOOL WINAPI d3dx9_file_data_IsReference(ID3DXFileData *iface)
static struct d3dx9_file * impl_from_ID3DXFile(ID3DXFile *iface)
HRESULT WINAPI DirectXFileCreate(LPDIRECTXFILE *lplpDirectXFile)
#define HeapFree(x, y, z)
#define IDirectXFile_RegisterTemplates(p, a, b)
#define IDirectXFile_Release(p)
#define IDirectXFileData_GetId(p, a)
#define IDirectXFileEnumObject_GetNextDataObject(p, a)
#define IDirectXFileEnumObject_Release(p)
#define DXFILELOAD_FROMFILE
#define DXFILEERR_BADFILEVERSION
#define IDirectXFile_CreateEnumObject(p, a, b, c)
#define DXFILEERR_BADFILEFLOATSIZE
#define DXFILEERR_BADFILETYPE
#define IDirectXFileData_GetType(p, a)
#define IDirectXFileData_GetName(p, a, b)
#define DXFILEERR_PARSEERROR
#define IDirectXFileData_GetData(p, a, b, c)
#define IDirectXFileObject_QueryInterface(p, a, b)
#define DXFILELOAD_FROMRESOURCE
#define DXFILEERR_NOMOREOBJECTS
#define DXFILELOAD_FROMMEMORY
#define IDirectXFileDataReference_Resolve(p, a)
#define DXFILEERR_BADVALUE
#define IDirectXFileData_GetNextObject(p, a)
#define IDirectXFileData_Release(p)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static char memory[1024 *256]
#define IsEqualGUID(rguid1, rguid2)
ID3DXFileData ** children
ID3DXFileData ID3DXFileData_iface
IDirectXFileData * dxfile_data
ID3DXFileEnumObject ID3DXFileEnumObject_iface
ID3DXFileData ** children
ID3DXFile ID3DXFile_iface
#define CONTAINING_RECORD(address, type, field)