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