Add texture loading

Add uv mapping
Add lighting
This commit is contained in:
2026-11-20 16:05:33 +01:00
parent 439871d63f
commit 7ef5efa341
13 changed files with 818 additions and 17 deletions
+5 -1
View File
@@ -1,7 +1,9 @@
#include "Light.h"
UINT Light::init()
UINT Light::init(D3DLIGHT9& lightData)
{
_lightData = lightData;
return 0;
}
@@ -11,6 +13,8 @@ void Light::update(FLOAT dt)
void Light::render(IDirect3DDevice9* pD3DDevice)
{
pD3DDevice->SetLight(0, &_lightData);
pD3DDevice->LightEnable(0, TRUE);
}
void Light::deInit()