24 lines
310 B
C++
24 lines
310 B
C++
#include "Light.h"
|
|
|
|
UINT Light::init(D3DLIGHT9& light, INT id)
|
|
{
|
|
_light = light;
|
|
_id = id;
|
|
|
|
return 0;
|
|
}
|
|
|
|
void Light::update(FLOAT dt)
|
|
{
|
|
}
|
|
|
|
void Light::render(IDirect3DDevice9* pD3DDevice)
|
|
{
|
|
pD3DDevice->SetLight(_id, &_light);
|
|
pD3DDevice->LightEnable(_id, TRUE);
|
|
}
|
|
|
|
void Light::deInit()
|
|
{
|
|
}
|