123 lines
3.8 KiB
C++
123 lines
3.8 KiB
C++
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1998 - 1999
|
|
//
|
|
// File: d3drmlightinterobj.h
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
// d3drmViewport2Obj.h : Declaration of the C_dxj_Direct3dRMLightInterpolatorObject
|
|
|
|
#include "resource.h" // main symbols
|
|
//#include "d3drmObjectObj.h"
|
|
|
|
#define typedef__dxj_Direct3dRMLightInterpolator LPDIRECT3DRMINTERPOLATOR
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Direct
|
|
|
|
//REVIEW -- using pointers to ID's is necessary because some compilers don't like
|
|
//references as template arguments.
|
|
|
|
class C_dxj_Direct3dRMLightInterpolatorObject :
|
|
public I_dxj_Direct3dRMLightInterpolator,
|
|
public I_dxj_Direct3dRMInterpolator,
|
|
//public I_dxj_Direct3dRMObject,
|
|
public CComObjectRoot
|
|
{
|
|
public:
|
|
C_dxj_Direct3dRMLightInterpolatorObject() ;
|
|
virtual ~C_dxj_Direct3dRMLightInterpolatorObject() ;
|
|
DWORD InternalAddRef();
|
|
DWORD InternalRelease();
|
|
|
|
BEGIN_COM_MAP(C_dxj_Direct3dRMLightInterpolatorObject)
|
|
COM_INTERFACE_ENTRY(I_dxj_Direct3dRMLightInterpolator)
|
|
COM_INTERFACE_ENTRY(I_dxj_Direct3dRMInterpolator)
|
|
//COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
|
|
END_COM_MAP()
|
|
|
|
|
|
|
|
DECLARE_AGGREGATABLE(C_dxj_Direct3dRMLightInterpolatorObject)
|
|
|
|
// 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 setType(
|
|
// /* [in] */ d3drmLightType t);
|
|
|
|
HRESULT STDMETHODCALLTYPE setColor(
|
|
/* [in] */ d3dcolor c);
|
|
|
|
HRESULT STDMETHODCALLTYPE setColorRGB(
|
|
/* [in] */ float r,
|
|
/* [in] */ float g,
|
|
/* [in] */ float b);
|
|
|
|
HRESULT STDMETHODCALLTYPE setRange(
|
|
/* [in] */ float rng);
|
|
|
|
HRESULT STDMETHODCALLTYPE setUmbra(
|
|
/* [in] */ float u);
|
|
|
|
HRESULT STDMETHODCALLTYPE setPenumbra(
|
|
/* [in] */ float p);
|
|
|
|
HRESULT STDMETHODCALLTYPE setConstantAttenuation(
|
|
/* [in] */ float atn);
|
|
|
|
HRESULT STDMETHODCALLTYPE setLinearAttenuation(
|
|
/* [in] */ float atn);
|
|
|
|
HRESULT STDMETHODCALLTYPE setQuadraticAttenuation(
|
|
/* [in] */ float atn);
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// note: this is public for the callbacks
|
|
|
|
|
|
|
|
private:
|
|
DECL_VARIABLE(_dxj_Direct3dRMLightInterpolator);
|
|
LPDIRECT3DRMLIGHT m__dxj_Direct3dRMLight;
|
|
|
|
|
|
public:
|
|
DX3J_GLOBAL_LINKS( _dxj_Direct3dRMLightInterpolator )
|
|
};
|
|
|
|
|