Class T3dLIGHT (unit TMatrix) |
Inherits from
TObject
T3DLIGHT : T3DLight implements the iDirect3DLight interface Same as the TMatrix you need to call update fater you set any value // Create : creates a light object , needs a IDirect3D interface. The other functions are obvious.
constructor Create(pIEngine : IDirect3d);
- ///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
function GetInterface : IDirect3dLight;
procedure SetColor(r,g,b : double);
procedure SetDirection(x,y,z : double);
procedure SetPosition(x,y,z : double);
procedure SetType(ltype : D3DLIGHTTYPE);
function Update : boolean;
m_Light : D3DLIGHT;
m_pILight : IDirect3dLight;
constructor Create(pIEngine : IDirect3d);
///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
function GetInterface : IDirect3dLight;
procedure SetColor(r,g,b : double);
procedure SetDirection(x,y,z : double);
procedure SetPosition(x,y,z : double);
procedure SetType(ltype : D3DLIGHTTYPE);
function Update : boolean;
m_Light : D3DLIGHT;
m_pILight : IDirect3dLight;