Files
hwr2023_a/GDP/D3D9/Light.cpp
T
2025-11-19 13:50:33 +01:00

24 lines
327 B
C++

#include "Light.h"
UINT Light::init(D3DLIGHT9& lightData, UINT id)
{
_lightData = lightData;
_id = id;
return 0;
}
void Light::update(FLOAT dt)
{
}
void Light::render(IDirect3DDevice9* pD3DDevice)
{
pD3DDevice->SetLight(_id, &_lightData);
pD3DDevice->LightEnable(_id, TRUE);
}
void Light::deInit()
{
}