summaryrefslogtreecommitdiff
path: root/tools/lights/lights.h
diff options
context:
space:
mode:
authorclaude-bot <[email protected]>2026-07-13 12:40:03 +0000
committerclaude-bot <[email protected]>2026-07-13 12:40:03 +0000
commit847962910f0bff071f3bf07c9abb87764fb6cac3 (patch)
treeddcd429e134c7fd5f72ddc97ced175de8d66fcd0 /tools/lights/lights.h
downloadlibrw-master.tar.gz
librw-master.zip
Import aap/librw @ masterHEADmaster
Snapshot for re3/reVC vendoring, per @lzcnt. Source: https://github.com/aap/librw (master).
Diffstat (limited to 'tools/lights/lights.h')
-rw-r--r--tools/lights/lights.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/lights/lights.h b/tools/lights/lights.h
new file mode 100644
index 0000000..5400a61
--- /dev/null
+++ b/tools/lights/lights.h
@@ -0,0 +1,37 @@
+
+
+extern rw::Light *BaseAmbientLight;
+extern bool BaseAmbientLightOn;
+
+extern rw::Light *CurrentLight;
+extern rw::Light *AmbientLight;
+extern rw::Light *PointLight;
+extern rw::Light *DirectLight;
+extern rw::Light *SpotLight;
+extern rw::Light *SpotSoftLight;
+
+extern float LightRadius;
+extern float LightConeAngle;
+extern rw::RGBAf LightColor;
+
+extern bool LightOn;
+extern bool LightDrawOn;
+extern rw::V3d LightPos;
+extern rw::int32 LightTypeIndex;
+
+extern rw::BBox RoomBBox;
+
+rw::Light *CreateBaseAmbientLight(void);
+rw::Light *CreateAmbientLight(void);
+rw::Light *CreateDirectLight(void);
+rw::Light *CreatePointLight(void);
+rw::Light *CreateSpotLight(void);
+rw::Light *CreateSpotSoftLight(void);
+
+void LightsDestroy(void);
+void LightsUpdate(void);
+void DrawCurrentLight(void);
+
+void LightRotate(float xAngle, float yAngle);
+void LightTranslateXY(float xDelta, float yDelta);
+void LightTranslateZ(float zDelta);