/* * d3drm.h Direct3DRM interfaces * * ========================================================================= * * Open Watcom Project * * Copyright (c) 2004-2010 The Open Watcom Contributors. All Rights Reserved. * * This file is automatically generated. Do not edit directly. * * ========================================================================= */ #ifndef __D3DRM_H__ #define __D3DRM_H__ #ifndef _ENABLE_AUTODEPEND #pragma read_only_file; #endif #include #include #ifdef __cplusplus extern "C" { #endif /* Pointers to interfaces */ WIN_TYPES( IDirect3DRM, DIRECT3DRM ); WIN_TYPES( IDirect3DRM2, DIRECT3DRM2 ); WIN_TYPES( IDirect3DRM3, DIRECT3DRM3 ); /* Direct3DRM error codes */ #define D3DRM_OK DD_OK #define D3DRMERR_BADOBJECT MAKE_DDHRESULT( 781 ) #define D3DRMERR_BADTYPE MAKE_DDHRESULT( 782 ) #define D3DRMERR_BADALLOC MAKE_DDHRESULT( 783 ) #define D3DRMERR_FACEUSED MAKE_DDHRESULT( 784 ) #define D3DRMERR_NOTFOUND MAKE_DDHRESULT( 785 ) #define D3DRMERR_NOTDONEYET MAKE_DDHRESULT( 786 ) #define D3DRMERR_FILENOTFOUND MAKE_DDHRESULT( 787 ) #define D3DRMERR_BADFILE MAKE_DDHRESULT( 788 ) #define D3DRMERR_BADDEVICE MAKE_DDHRESULT( 789 ) #define D3DRMERR_BADVALUE MAKE_DDHRESULT( 790 ) #define D3DRMERR_BADMAJORVERSION MAKE_DDHRESULT( 791 ) #define D3DRMERR_BADMINORVERSION MAKE_DDHRESULT( 792 ) #define D3DRMERR_UNABLETOEXECUTE MAKE_DDHRESULT( 793 ) #define D3DRMERR_LIBRARYNOTFOUND MAKE_DDHRESULT( 794 ) #define D3DRMERR_INVALIDLIBRARY MAKE_DDHRESULT( 795 ) #define D3DRMERR_PENDING MAKE_DDHRESULT( 796 ) #define D3DRMERR_NOTENOUGHDATA MAKE_DDHRESULT( 797 ) #define D3DRMERR_REQUESTTOOLARGE MAKE_DDHRESULT( 798 ) #define D3DRMERR_REQUESTTOOSMALL MAKE_DDHRESULT( 799 ) #define D3DRMERR_CONNECTIONLOST MAKE_DDHRESULT( 800 ) #define D3DRMERR_LOADABORTED MAKE_DDHRESULT( 801 ) #define D3DRMERR_NOINTERNET MAKE_DDHRESULT( 802 ) #define D3DRMERR_BADCACHEFILE MAKE_DDHRESULT( 803 ) #define D3DRMERR_BOXNOTSET MAKE_DDHRESULT( 804 ) #define D3DRMERR_BADPMDATA MAKE_DDHRESULT( 805 ) #define D3DRMERR_CLIENTNOTREGISTERED MAKE_DDHRESULT( 806 ) #define D3DRMERR_NOTCREATEDFROMDDS MAKE_DDHRESULT( 807 ) #define D3DRMERR_NOSUCHKEY MAKE_DDHRESULT( 808 ) #define D3DRMERR_INCOMPATIBLEKEY MAKE_DDHRESULT( 809 ) #define D3DRMERR_ELEMENTINUSE MAKE_DDHRESULT( 810 ) #define D3DRMERR_TEXTUREFORMATNOTFOUND MAKE_DDHRESULT( 811 ) #define D3DRMERR_NOTAGGREGATED MAKE_DDHRESULT( 812 ) /* GUIDs */ EXTERN_C const IID IID_IDirect3DRM; EXTERN_C const IID IID_IDirect3DRM2; EXTERN_C const IID IID_IDirect3DRM3; EXTERN_C const CLSID CLSID_CDirect3DRM; /* IDirect3DRM interface */ #undef INTERFACE #define INTERFACE IDirect3DRM DECLARE_INTERFACE_( IDirect3DRM, IUnknown ) { IUNKNOWN_METHODS( PURE ); /* IDirect3DRM methods */ STDMETHOD( CreateObject )( THIS_ REFCLSID, LPUNKNOWN, REFIID, LPVOID * ) PURE; STDMETHOD( CreateFrame )( THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME * ) PURE; STDMETHOD( CreateMesh )( THIS_ LPDIRECT3DRMMESH * ) PURE; STDMETHOD( CreateMeshBuilder )( THIS_ LPDIRECT3DRMMESHBUILDER * ) PURE; STDMETHOD( CreateFace )( THIS_ LPDIRECT3DRMFACE * ) PURE; STDMETHOD( CreateAnimation )( THIS_ LPDIRECT3DRMANIMATION * ) PURE; STDMETHOD( CreateAnimationSet )( THIS_ LPDIRECT3DRMANIMATIONSET * ) PURE; STDMETHOD( CreateTexture )( THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE * ) PURE; STDMETHOD( CreateLight )( THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT * ) PURE; STDMETHOD( CreateLightRGB )( THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT * ) PURE; STDMETHOD( CreateMaterial )( THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL * ) PURE; STDMETHOD( CreateDevice )( THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE * ) PURE; STDMETHOD( CreateDeviceFromSurface )( THIS_ LPGUID, LPDIRECTDRAW, LPDIRECTDRAWSURFACE, LPDIRECT3DRMDEVICE * ) PURE; STDMETHOD( CreateDeviceFromD3D )( THIS_ LPDIRECT3D, LPDIRECT3DDEVICE, LPDIRECT3DRMDEVICE * ) PURE; STDMETHOD( CreateDeviceFromClipper )( THIS_ LPDIRECTDRAWCLIPPER, LPGUID, int, int, LPDIRECT3DRMDEVICE * ) PURE; STDMETHOD( CreateTextureFromSurface )( THIS_ LPDIRECTDRAWSURFACE, LPDIRECT3DRMTEXTURE * ) PURE; STDMETHOD( CreateShadow )( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMVISUAL * ) PURE; STDMETHOD( CreateViewport )( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD, DWORD, DWORD, LPDIRECT3DRMVIEWPORT * ) PURE; STDMETHOD( CreateWrap )( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMWRAP * ) PURE; STDMETHOD( CreateUserVisual )( THIS_ D3DRMUSERVISUALCALLBACK, LPVOID, LPDIRECT3DRMUSERVISUAL * ) PURE; STDMETHOD( LoadTexture )( THIS_ const char *, LPDIRECT3DRMTEXTURE * ) PURE; STDMETHOD( LoadTextureFromResource )( THIS_ HRSRC, LPDIRECT3DRMTEXTURE * ) PURE; STDMETHOD( SetSearchPath )( THIS_ LPCSTR ) PURE; STDMETHOD( AddSearchPath )( THIS_ LPCSTR ) PURE; STDMETHOD( GetSearchPath )( THIS_ DWORD *, LPSTR ) PURE; STDMETHOD( SetDefaultTextureColors )( THIS_ DWORD ) PURE; STDMETHOD( SetDefaultTextureShades )( THIS_ DWORD ) PURE; STDMETHOD( GetDevices )( THIS_ LPDIRECT3DRMDEVICEARRAY * ) PURE; STDMETHOD( GetNamedObject )( THIS_ const char *, LPDIRECT3DRMOBJECT * ) PURE; STDMETHOD( EnumerateObjects )( THIS_ D3DRMOBJECTCALLBACK, LPVOID ) PURE; STDMETHOD( Load )( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID, LPDIRECT3DRMFRAME ) PURE; STDMETHOD( Tick )( THIS_ D3DVALUE ) PURE; }; /* IDirect3DRM2 interface */ #undef INTERFACE #define INTERFACE IDirect3DRM2 DECLARE_INTERFACE_( IDirect3DRM2, IUnknown ) { IUNKNOWN_METHODS( PURE ); /* IDirect3DRM2 methods */ STDMETHOD( CreateObject )( THIS_ REFCLSID, LPUNKNOWN, REFIID, LPVOID * ) PURE; STDMETHOD( CreateFrame )( THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME2 * ) PURE; STDMETHOD( CreateMesh )( THIS_ LPDIRECT3DRMMESH * ) PURE; STDMETHOD( CreateMeshBuilder )( THIS_ LPDIRECT3DRMMESHBUILDER2 * ) PURE; STDMETHOD( CreateFace )( THIS_ LPDIRECT3DRMFACE * ) PURE; STDMETHOD( CreateAnimation )( THIS_ LPDIRECT3DRMANIMATION * ) PURE; STDMETHOD( CreateAnimationSet )( THIS_ LPDIRECT3DRMANIMATIONSET * ) PURE; STDMETHOD( CreateTexture )( THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE2 * ) PURE; STDMETHOD( CreateLight )( THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT * ) PURE; STDMETHOD( CreateLightRGB )( THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT * ) PURE; STDMETHOD( CreateMaterial )( THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL * ) PURE; STDMETHOD( CreateDevice )( THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE2 * ) PURE; STDMETHOD( CreateDeviceFromSurface )( THIS_ LPGUID, LPDIRECTDRAW, LPDIRECTDRAWSURFACE, LPDIRECT3DRMDEVICE2 * ) PURE; STDMETHOD( CreateDeviceFromD3D )( THIS_ LPDIRECT3D2, LPDIRECT3DDEVICE2, LPDIRECT3DRMDEVICE2 * ) PURE; STDMETHOD( CreateDeviceFromClipper )( THIS_ LPDIRECTDRAWCLIPPER, LPGUID, int, int, LPDIRECT3DRMDEVICE2 * ) PURE; STDMETHOD( CreateTextureFromSurface )( THIS_ LPDIRECTDRAWSURFACE, LPDIRECT3DRMTEXTURE2 * ) PURE; STDMETHOD( CreateShadow )( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMVISUAL * ) PURE; STDMETHOD( CreateViewport )( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD, DWORD, DWORD, LPDIRECT3DRMVIEWPORT * ) PURE; STDMETHOD( CreateWrap )( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMWRAP * ) PURE; STDMETHOD( CreateUserVisual )( THIS_ D3DRMUSERVISUALCALLBACK, LPVOID, LPDIRECT3DRMUSERVISUAL * ) PURE; STDMETHOD( LoadTexture )( THIS_ const char *, LPDIRECT3DRMTEXTURE2 * ) PURE; STDMETHOD( LoadTextureFromResource )( THIS_ HMODULE, LPCTSTR, LPCTSTR, LPDIRECT3DRMTEXTURE2 * ) PURE; STDMETHOD( SetSearchPath )( THIS_ LPCSTR ) PURE; STDMETHOD( AddSearchPath )( THIS_ LPCSTR ) PURE; STDMETHOD( GetSearchPath )( THIS_ DWORD *, LPSTR ) PURE; STDMETHOD( SetDefaultTextureColors )( THIS_ DWORD ) PURE; STDMETHOD( SetDefaultTextureShades )( THIS_ DWORD ) PURE; STDMETHOD( GetDevices )( THIS_ LPDIRECT3DRMDEVICEARRAY * ) PURE; STDMETHOD( GetNamedObject )( THIS_ const char *, LPDIRECT3DRMOBJECT * ) PURE; STDMETHOD( EnumerateObjects )( THIS_ D3DRMOBJECTCALLBACK, LPVOID ) PURE; STDMETHOD( Load )( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID, LPDIRECT3DRMFRAME ) PURE; STDMETHOD( Tick )( THIS_ D3DVALUE ) PURE; STDMETHOD( CreateProgressiveMesh )( THIS_ LPDIRECT3DRMPROGRESSIVEMESH * ) PURE; }; /* IDirect3DRM3 interface */ #undef INTERFACE #define INTERFACE IDirect3DRM3 DECLARE_INTERFACE_( IDirect3DRM3, IUnknown ) { IUNKNOWN_METHODS( PURE ); /* IDirect3DRM3 methods */ STDMETHOD( CreateObject )( THIS_ REFCLSID, LPUNKNOWN, REFIID, LPVOID * ) PURE; STDMETHOD( CreateFrame )( THIS_ LPDIRECT3DRMFRAME3, LPDIRECT3DRMFRAME3 * ) PURE; STDMETHOD( CreateMesh )( THIS_ LPDIRECT3DRMMESH * ) PURE; STDMETHOD( CreateMeshBuilder )( THIS_ LPDIRECT3DRMMESHBUILDER3 * ) PURE; STDMETHOD( CreateFace )( THIS_ LPDIRECT3DRMFACE2 * ) PURE; STDMETHOD( CreateAnimation )( THIS_ LPDIRECT3DRMANIMATION2 * ) PURE; STDMETHOD( CreateAnimationSet )( THIS_ LPDIRECT3DRMANIMATIONSET2 * ) PURE; STDMETHOD( CreateTexture )( THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE3 * ) PURE; STDMETHOD( CreateLight )( THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT * ) PURE; STDMETHOD( CreateLightRGB )( THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT * ) PURE; STDMETHOD( CreateMaterial )( THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL2 * ) PURE; STDMETHOD( CreateDevice )( THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE3 * ) PURE; STDMETHOD( CreateDeviceFromSurface )( THIS_ LPGUID, LPDIRECTDRAW, LPDIRECTDRAWSURFACE, LPDIRECT3DRMDEVICE3 * ) PURE; STDMETHOD( CreateDeviceFromD3D )( THIS_ LPDIRECT3D2, LPDIRECT3DDEVICE2, LPDIRECT3DRMDEVICE3 * ) PURE; STDMETHOD( CreateDeviceFromClipper )( THIS_ LPDIRECTDRAWCLIPPER, LPGUID, int, int, LPDIRECT3DRMDEVICE3 * ) PURE; STDMETHOD( CreateTextureFromSurface )( THIS_ LPDIRECTDRAWSURFACE, LPDIRECT3DRMTEXTURE3 * ) PURE; STDMETHOD( CreateShadow )( THIS_ LPUNKNOWN, LPDIRECT3DRMLIGHT, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMSHADOW2 * ) PURE; STDMETHOD( CreateViewport )( THIS_ LPDIRECT3DRMDEVICE3, LPDIRECT3DRMFRAME3, DWORD, DWORD, DWORD, DWORD, LPDIRECT3DRMVIEWPORT2 * ) PURE; STDMETHOD( CreateWrap )( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME3, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMWRAP * ) PURE; STDMETHOD( CreateUserVisual )( THIS_ D3DRMUSERVISUALCALLBACK, LPVOID, LPDIRECT3DRMUSERVISUAL * ) PURE; STDMETHOD( LoadTexture )( THIS_ const char *, LPDIRECT3DRMTEXTURE3 * ) PURE; STDMETHOD( LoadTextureFromResource )( THIS_ HMODULE, LPCTSTR, LPCTSTR, LPDIRECT3DRMTEXTURE3 * ) PURE; STDMETHOD( SetSearchPath )( THIS_ LPCSTR ) PURE; STDMETHOD( AddSearchPath )( THIS_ LPCSTR ) PURE; STDMETHOD( GetSearchPath )( THIS_ DWORD *, LPSTR ) PURE; STDMETHOD( SetDefaultTextureColors )( THIS_ DWORD ) PURE; STDMETHOD( SetDefaultTextureShades )( THIS_ DWORD ) PURE; STDMETHOD( GetDevices )( THIS_ LPDIRECT3DRMDEVICEARRAY * ) PURE; STDMETHOD( GetNamedObject )( THIS_ const char *, LPDIRECT3DRMOBJECT * ) PURE; STDMETHOD( EnumerateObjects )( THIS_ D3DRMOBJECTCALLBACK, LPVOID ) PURE; STDMETHOD( Load )( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURE3CALLBACK, LPVOID, LPDIRECT3DRMFRAME3 ) PURE; STDMETHOD( Tick )( THIS_ D3DVALUE ) PURE; STDMETHOD( CreateProgressiveMesh )( THIS_ LPDIRECT3DRMPROGRESSIVEMESH * ) PURE; STDMETHOD( RegisterClient )( THIS_ REFGUID, LPDWORD ) PURE; STDMETHOD( UnregisterClient )( THIS_ REFGUID ) PURE; STDMETHOD( CreateClippedVisual )( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMCLIPPEDVISUAL * ) PURE; STDMETHOD( SetOptions )( THIS_ DWORD ) PURE; STDMETHOD( GetOptions )( THIS_ LPDWORD ) PURE; }; /* Functions in D3DRM.DLL */ STDAPI Direct3DRMCreate( LPDIRECT3DRM * ); #ifdef __cplusplus } /* extern "C" */ #endif #endif /* __D3DRM_H__ */