summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-10-02 20:46:39 +0000
committerrodri <rgl@antares-labs.eu>2024-10-02 20:46:39 +0000
commit0abc1ca44de64a689f5877e4b7e194c43a1ddcd8 (patch)
tree8262ecd3ad2f3a53be7bcbfcd813cfeec71ad714 /graphics.h
parentb6a336aff26fbc94e7803719a8aeb8fa29eddb9b (diff)
downloadlibgraphics-0abc1ca44de64a689f5877e4b7e194c43a1ddcd8.tar.gz
libgraphics-0abc1ca44de64a689f5877e4b7e194c43a1ddcd8.tar.bz2
libgraphics-0abc1ca44de64a689f5877e4b7e194c43a1ddcd8.zip
shorten Shadertab prop names. add quaternion sandwich product utils.
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/graphics.h b/graphics.h
index 047334d..8d62e76 100644
--- a/graphics.h
+++ b/graphics.h
@@ -233,9 +233,9 @@ struct SUparams
struct Shadertab
{
char *name;
- Point3 (*vshader)(Shaderparams*); /* vertex shader */
- Color (*fshader)(Shaderparams*); /* fragment shader */
- Vertexattrs; /* uniforms */
+ Point3 (*vs)(Shaderparams*); /* vertex shader */
+ Color (*fs)(Shaderparams*); /* fragment shader */
+ Vertexattrs; /* uniforms */
};
struct Rendertime
@@ -446,6 +446,8 @@ 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*);