diff options
author | rodri <rgl@antares-labs.eu> | 2024-10-19 11:42:51 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-10-19 11:42:51 +0000 |
commit | 12efa1d9e0ff3a32b018ee83d6ebee08c77972a9 (patch) | |
tree | 25cef8ab1693ee3224c121ff7cac86d55907566f /graphics.h | |
parent | a09cfff78a96a10169a30324b75554827945fed4 (diff) | |
download | libgraphics-12efa1d9e0ff3a32b018ee83d6ebee08c77972a9.tar.gz libgraphics-12efa1d9e0ff3a32b018ee83d6ebee08c77972a9.tar.bz2 libgraphics-12efa1d9e0ff3a32b018ee83d6ebee08c77972a9.zip |
Diffstat (limited to 'graphics.h')
-rw-r--r-- | graphics.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -150,6 +150,8 @@ struct LightSource /* spotlights */ double θu; /* umbra angle. anything beyond is unlit */ double θp; /* penumbra angle. anything within is fully lit */ + + LightSource *prev, *next; }; struct Material @@ -199,6 +201,8 @@ struct Scene char *name; Entity ents; ulong nents; + LightSource lights; + ulong nlights; Cubemap *skybox; void (*addent)(Scene*, Entity*); @@ -446,8 +450,6 @@ Point3 modulapt3(Point3, Point3); Point3 minpt3(Point3, Point3); Point3 maxpt3(Point3, Point3); int eqpt3(Point3, Point3); -Quaternion qsandwich(Quaternion, Quaternion); -Point3 qsandwichpt3(Quaternion, Point3); Memimage *rgba(ulong); Memimage *dupmemimage(Memimage*); |