aboutsummaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-03-03 00:40:51 +0000
committerrodri <rgl@antares-labs.eu>2024-03-03 00:40:51 +0000
commit6b71bf694a9fa2e694f3e70a2067e0021b2c2f07 (patch)
tree666b102170f4ad3803fcc284dafb330f931cf7e1 /internal.h
parente0baf147d655409b721e41b0e3effabd39a96b34 (diff)
downloadlibgraphics-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 0c66625..5fcd6e8 100644
--- a/internal.h
+++ b/internal.h
@@ -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);