diff options
author | rodri <rgl@antares-labs.eu> | 2024-03-03 00:40:51 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-03-03 00:40:51 +0000 |
commit | 6b71bf694a9fa2e694f3e70a2067e0021b2c2f07 (patch) | |
tree | 666b102170f4ad3803fcc284dafb330f931cf7e1 /internal.h | |
parent | e0baf147d655409b721e41b0e3effabd39a96b34 (diff) | |
download | libgraphics-6b71bf694a9fa2e694f3e70a2067e0021b2c2f07.tar.gz libgraphics-6b71bf694a9fa2e694f3e70a2067e0021b2c2f07.tar.bz2 libgraphics-6b71bf694a9fa2e694f3e70a2067e0021b2c2f07.zip |
add user-defined vertex attributes (varyings) and improve the interpolation code.
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -12,6 +12,13 @@ void rmfbctl(Framebufctl*); /* render */ void shade(Framebuf*, Scene*, Shader*); +/* vertex */ +Vertex dupvertex(Vertex*); +void lerpvertex(Vertex*, Vertex*, Vertex*, double); +void berpvertex(Vertex*, Vertex*, Vertex*, Vertex*, Point3); +void delvattrs(Vertex*); +void fprintvattrs(int, Vertex*); + /* util */ int min(int, int); int max(int, int); |