Windows2003-3790/multimedia/directx/dxvb/dx7vb/d3drmmaterialinterobj.h
2020-09-30 16:53:55 +02:00

107 lines
3.3 KiB
C++

//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998 - 1999
//
// File: d3drmmaterialinterobj.h
//
//--------------------------------------------------------------------------
// d3drmViewport2Obj.h : Declaration of the C_dxj_Direct3dRMMaterialInterpolatorObject
#include "resource.h" // main symbols
//#include "d3drmObjectObj.h"
#define typedef__dxj_Direct3dRMMaterialInterpolator LPDIRECT3DRMINTERPOLATOR
/////////////////////////////////////////////////////////////////////////////
// Direct
//REVIEW -- using pointers to ID's is necessary because some compilers don't like
//references as template arguments.
class C_dxj_Direct3dRMMaterialInterpolatorObject :
public I_dxj_Direct3dRMMaterialInterpolator,
public I_dxj_Direct3dRMInterpolator,
//public I_dxj_Direct3dRMObject,
public CComObjectRoot
{
public:
C_dxj_Direct3dRMMaterialInterpolatorObject() ;
virtual ~C_dxj_Direct3dRMMaterialInterpolatorObject() ;
DWORD InternalAddRef();
DWORD InternalRelease();
BEGIN_COM_MAP(C_dxj_Direct3dRMMaterialInterpolatorObject)
COM_INTERFACE_ENTRY(I_dxj_Direct3dRMMaterialInterpolator)
COM_INTERFACE_ENTRY(I_dxj_Direct3dRMInterpolator)
//COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
END_COM_MAP()
DECLARE_AGGREGATABLE(C_dxj_Direct3dRMMaterialInterpolatorObject)
// I_dxj_Direct3dRMViewport2
public:
/* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
/* [in] */ IUnknown __RPC_FAR *lpdd);
/* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
/* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
HRESULT STDMETHODCALLTYPE attachObject(
/* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmObject);
HRESULT STDMETHODCALLTYPE detachObject(
/* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmObject);
HRESULT STDMETHODCALLTYPE getAttachedObjects(
/* [retval][out] */ I_dxj_Direct3dRMObjectArray __RPC_FAR *__RPC_FAR *rmArray);
HRESULT STDMETHODCALLTYPE setIndex(
/* [in] */ float val);
HRESULT STDMETHODCALLTYPE getIndex(
/* [retval][out] */ float __RPC_FAR *val);
HRESULT STDMETHODCALLTYPE interpolate(
/* [in] */ float val,
/* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmobject,
/* [in] */ long options);
HRESULT STDMETHODCALLTYPE setPower(
/* [in] */ float power);
HRESULT STDMETHODCALLTYPE setSpecular(
/* [in] */ float red,
/* [in] */ float green,
/* [in] */ float blue);
HRESULT STDMETHODCALLTYPE setEmissive(
/* [in] */ float red,
/* [in] */ float green,
/* [in] */ float blue);
////////////////////////////////////////////////////////////////////////////////////
//
// note: this is public for the callbacks
private:
DECL_VARIABLE(_dxj_Direct3dRMMaterialInterpolator);
LPDIRECT3DRMMATERIAL2 m__dxj_Direct3dRMMaterial2;
public:
DX3J_GLOBAL_LINKS( _dxj_Direct3dRMMaterialInterpolator )
};